-
Notifications
You must be signed in to change notification settings - Fork 15
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
Convert AirlineCodeLookUp to OpenAPI 3.0 spec #66
Convert AirlineCodeLookUp to OpenAPI 3.0 spec #66
Conversation
72498c3
to
cec3faf
Compare
cec3faf
to
d8b9932
Compare
Thanks for your contribution @jordan-gillard. We will review the PR in the next few days! |
Hello @jordan-gillard , |
…ication into airline-code-lookup-to-openapi-3.0
201eb02
to
b9eaa13
Compare
My bad! Fixed here 3daa9ac
I reverted this change here: dabe43e My reasoning was that it seemed redundant to specify the same type/format/example repeatedly for each property. But I agree it's nitpicky and really a matter of taste. Code comparison properties:
self:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri'
next:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri'
previous:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri'
last:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri'
first:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri'
up:
- type: string
- format: uri
- example: https://test.api.amadeus.com/v1/area/resources?...
+ $ref: '#/components/schemas/Uri' Not really related, but one thing I notice is that |
Thanks @jordan-gillard for your updates. Regarding your point about Collection_Meta, I totally agree. We have a lot more object that should be common along most of our API but that's not reflecting well, like Error, Warning, ... . We will work on improving over time while migrating to OAS3. |
This PR converts
spec/yaml/AirlineCodeLookUp_v1_swagger_specification.yaml
from the Swagger 2.0 spec to OpenAPI 3.0. This change was done by:component/schemas
andcomponent/responses
introduced by Swagger's converter.I then validated spec files with
jbang OASValidator.java oasv-1a4dev-config.properties spec
and asserted that everything is correct in the web UI.If this is something the repo maintainers would like done for other files still using the Swagger 2.0 specification, please let me know.