-
-
Notifications
You must be signed in to change notification settings - Fork 934
add swagger img #620
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
add swagger img #620
Conversation
Build a working and fully-featured CRUD API in minutes. Leverage the awesome features of the tool to develop complex and | ||
high performance API-first projects. | ||
|
||
<img src="https://camo.githubusercontent.com/3a20ce067d38ecc857843b57b0d926e3c718f11f/687474703a2f2f323433347a6432396d697364336534613466316537336b692e7770656e67696e652e6e6574646e612d63646e2e636f6d2f77702d636f6e74656e742f7468656d65732f6b6576696e6c656172796e65742f6173736574732f696d672f737761676765722d6c6f676f4032782e706e67" alt="Swagger" data-canonical-src="http://2434zd29misd3e4a4f1e73ki.wpengine.netdna-cdn.com/wp-content/themes/kevinlearynet/assets/img/swagger-logo@2x.png" width="50" height="50"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a blank line before. Is this an official badge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the official logo. Maybe we could add the .json in the repository and validate against the validator ?
👎 It's not obvious to those who don't recognize the Swagger logo. There should at least be a link? In any case, the Swagger spec seems to have been moved under the Open API Initiative and is now known as the The OpenAPI Specification. |
@teohhanhui I think we should add the swagger validator logo which means that our spec is valid, for that I don't know if we can do it in travis or if we have to save json file somewhere in order to test it. Or we can add it and then rely on the swagger tester in travis ? WDYT ? |
We have to dump the one we have with the console command then validate it against the schema validator to have the validation image based on our schema, like travis, if it fails, both travis & the schema validator will fail |
@Simperfit I really don't get what you mean by "validation image" (badge?), and why do we need that at all? What we should try to add in our Behat test suite is validation of the generated Swagger spec (by API Platform) against the Swagger JSON Schema (linked above). |
@teohhanhui Yes I mean the validation badge. BTW we are already testing the validity of the schema in travis (swagger validate ..). I just wanted to inform in the readme that we support Swagger and that the schema is valide according to travis ? |
The validation badge is meant for published Swagger spec of an API, not a library. |
Add Swagger logo