-
Notifications
You must be signed in to change notification settings - Fork 33
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
openapi 3.1: swagger-parser won't parse a 3.1 spec #178
Comments
Hi, I was already waiting for swagger-parser to support 3.1 Kind regards, |
FYI: This might wake up APIdevtools as its schema defs seem to rely on the official spec |
Give it a minute, we're on it. We need to get the OASv3.1 schema done so that other tools, like swagger-parser, can use it to get up to 3.1 support. It'll take a while before the tools you like are on 3.1, so please be patient, and send PRs whenever you can to help! 🥳 |
@philsturgeon No rush, I'd rather see a solid schema than a rush job that needs to be patched 5 times over ;-) |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' |
Progress on the schemas is going rather well. Maybe you could give it a try and report any problems over there. OAI/OpenAPI-Specification#2489 |
@philsturgeon : thanks for reporting your progress ! From the looks of it APIDevTools/openapi-schemas will automatically pick your schema up once its published. Kind regards, |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' |
Small update: I have submitted a PR to APIDevTools/openapi-schemas 5 days ago. However no response yet :-( If it turns out APIDevTools/* has been abandoned then we need to go for plan B. Kind regards, |
I don't get the emails about it but I do have enough permissions to merge. Let me look into how to tag releases. |
Small update: Plan A is moving very slowly. Phil has merged the 3.1 PR to APIdevTools/openapi-schemas (thanks for that !), but it has not been published yet on NPM. Kind regards, |
Another update: Plan A: continue using swagger-parser
Plan B: build own openApi schema validator on Ajv
Given the number of dependencies Plan B seems the most viable candidate for now. To be continued.. |
Plan B seems to work :-) Plan B: build own openApi schema validator on Ajv
The result is https://github.com/seriousme/openapi-schema-validator and has way less dependencies than swagger-parser while swagger-parser also only checked for schema compliance on 3.0. Next stop is integrating it with fastify-openapi-glue. |
It has been quite a journey but I just released version 2.6.0 that supports OpenApi 3.1. Kind regards, |
@seriousme Thank you so much; I know it was quite a treasure hunt to sort through all the paths but it looks like you've removed some dependencies which may be helpful going forward. I tested on my admittedly simple 3.1 spec and so far, it works beautifully! Again, thanks. |
openapi 3.1 is released -- but the openapi-glue dependency https://github.com/APIDevTools/swagger-parser won't parse that spec . The repo over there appears slightly dormant. Any plans here for handling that dependency? Or should we try to do PRs on swagger-parser?
The text was updated successfully, but these errors were encountered: