Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

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

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 self-assigned this Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request openapi3
Projects
None yet
Development

No branches or pull requests

1 participant