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

Uniftying with @types/json-schema? #61

Open
eropple opened this issue May 10, 2020 · 1 comment
Open

Uniftying with @types/json-schema? #61

eropple opened this issue May 10, 2020 · 1 comment

Comments

@eropple
Copy link

eropple commented May 10, 2020

Hey there - thanks for this library! It's super helpful.

One thing is a little bit troublesome, though. As of OpenAPI 3.1, OAS uses a complete superset of JSON Schema. To this end, juggling between the slightly different openapi3-ts and @types/json-schema types is a bit of a bear.

My use case, personally, is that I'm using the same schemas when I pass them to Fastify's ajv validator as I do to openapi3-ts. Maybe there's a way we (I'm happy to help if I can) can synchronize these together?

@pjmolina
Copy link
Contributor

pjmolina commented May 12, 2020

Hi @eropple
Indeed. OpenApi 3.1 is converging with JSON Schema.
Reimplementing JSON schema is out of scope of this library.
So yes, thinking about it and totally open to listen for proposal, ideas, PR to make it easy.
Feel free to propose your.

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

No branches or pull requests

2 participants