-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fix swagger spec #427
Fix swagger spec #427
Conversation
Thank you @IvanGoncharov for the contribution! And the catalogue project looks very very interesting! We'd love be part of it. |
@IvanGoncharov Thank you for the patch. BTW Which tool are you using for spec validation? This one? |
@Pchelolo |
@Pchelolo @d00rman Next problem that I see is optional path parameters. Like for example:
Simplest solution would be to split function into few, like for example
Code duplication could be reduced by sharing parameters and responces. |
@IvanGoncharov: We proposed optional path & more generally RFC 6570 support in OAI/OpenAPI-Specification#93. There are quite a few other tasks requesting this, and there were some noises from the swagger folks that they'd add it in the next version of the spec. I don't think that bloating our docs with a lot of overlapping routes would be desirable. Maybe we could find a way to automatically expand routes using some RFC 6570 features to a verbose Swagger 2.0 spec & then list that in your site? |
@gwicke I think first step is to explicitly mark that you using such extension and it not done by mistake. |
I'm working on open catalog of REST API specifications.
And I really want to add your API into it, but it don't pass validation.
As first step, I fixed some obvious mistakes.