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

Api specs fixes #1898

Merged
merged 8 commits into from Sep 28, 2018
Merged

Api specs fixes #1898

merged 8 commits into from Sep 28, 2018

Conversation

noirbizarre
Copy link
Contributor

This PR fixes a lot of swagger.json API specs bugs allowing it to validate and so being able to use swagger tools that weren't working (like the new version of Swagger UI).

Some fixes are on the flask-restplus side so it has been updated with it

@noirbizarre noirbizarre added this to the 1.6.0 milestone Sep 27, 2018
@noirbizarre noirbizarre requested a review from a team September 27, 2018 10:09
Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we automate specs validation in a test?

@noirbizarre
Copy link
Contributor Author

I think we should. In this PR or another ?

@abulte
Copy link
Contributor

abulte commented Sep 27, 2018

@noirbizarre in this PR if you have time I think it's OK

@noirbizarre
Copy link
Contributor Author

Added validation testing. (flask-restplus now provide schemas and validation support)

schema = json.loads(json.dumps(api.__schema__))
try:
schemas.validate(schema)
success('API specificationsare valid')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/specificationsare/specifications are/

@noirbizarre noirbizarre merged commit d965fa9 into opendatateam:master Sep 28, 2018
@noirbizarre noirbizarre deleted the api-specs-fixes branch September 28, 2018 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants