Skip to content

Update swagger parser - #110

Merged
eguzki merged 1 commit into
masterfrom
swagger-custom-parser
Mar 18, 2019
Merged

Update swagger parser#110
eguzki merged 1 commit into
masterfrom
swagger-custom-parser

Conversation

@eguzki

@eguzki eguzki commented Mar 15, 2019

Copy link
Copy Markdown
Member

Currently used swagger parsing library does not support vendor extensions swagger-rb/swagger-rb#5

Issue opened 4 years ago and it does not seem to be fixed soon.

This PR removes swagger-rb parser library and implements swagger spec parsing for required elements. Basically, Swagger JSON Schema https://swagger.io/specification/ is used to validate swagger spec and then parsed required elements for 3scale toolbox. Just few lines of code.

For Openapi 3.0 there is an active repository https://github.com/Nexmo/oas_parser

Fixes #105
Fixes #93

@eguzki
eguzki requested a review from mikz March 15, 2019 17:48
@eguzki
eguzki force-pushed the swagger-custom-parser branch from fdd774c to 0052888 Compare March 18, 2019 15:57
@eguzki eguzki changed the title [WIP] Update swagger parser Update swagger parser Mar 18, 2019
@eguzki

eguzki commented Mar 18, 2019

Copy link
Copy Markdown
Member Author

tests implemented. Ready for review @mikz

@mikz mikz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@eguzki
eguzki merged commit ca3a0df into master Mar 18, 2019
@eguzki
eguzki deleted the swagger-custom-parser branch March 18, 2019 21:17
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.

'x-async-responses' is not defined at 3scale_toolbox Cannot import OpenAPI that has vendor extensions

2 participants