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

Implement schema parser #69

Open
kylef opened this issue Dec 18, 2018 · 0 comments
Open

Implement schema parser #69

kylef opened this issue Dec 18, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request openapi3
Projects

Comments

@kylef
Copy link
Member

kylef commented Dec 18, 2018

The current schema parser (conversion to data structures) is incredibly simplistic. There is an implementation in the Swagger 2 adapter (https://github.com/apiaryio/fury-adapter-swagger/blob/cc772bbd1ba10fdc61de0e5c069a5ab5abfcefa5/src/schema.js) which can be used for reference, our parser in lib/parser/oas/parseSchema.js can be improve significantly. We should implement a parser supporting https://github.com/OAI/OpenAPI-Specification/blob/50c152549263cda0f05608d514ba78546b390d0e/versions/3.0.0.md#schemaObject. When this is implemented I'd break it up significantly, we can for example handle array, and then object etc all separately.

One major difference between the OAS 2 implementation is we should provide source map information in the data struture output.

@kylef kylef transferred this issue from another repository Jan 18, 2019
@kylef kylef added the openapi3 label Jan 18, 2019
@kylef kylef added this to the OpenAPI 3 Parser 1.0.0 milestone Jan 18, 2019
@kylef kylef added the enhancement New feature or request label Jan 20, 2019
@kylef kylef added this to To do in OAS 3 MVP Jan 22, 2019
@kylef kylef self-assigned this Jan 29, 2019
@kylef kylef moved this from To do to In progress in OAS 3 MVP Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi3
Projects
No open projects
OAS 3 MVP
  
In progress
Development

No branches or pull requests

1 participant