Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change checks for 'File' type with checks for 'Binary' type #373

Closed
wants to merge 2 commits into from

Conversation

oleastre
Copy link
Contributor

@oleastre oleastre commented May 3, 2019

This is an updated version of #185
As openapi 3.0 specifications states that files upload should be specified as {type: string, format: binary}, we need to replace the file detection code.
First commit just add the isBinary vendor extension, the second updates all templates to use isBinary instead or isFile.

Automated replacement with the following sed command:
sed -i -re "s/\\{\\{([/#^](is|not))File\\}\\}/{{\1Binary}}/g" $FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant