Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Support for OpenAPI 3.0.x #78

Open
tanvp112 opened this issue Dec 6, 2019 · 1 comment
Open

Support for OpenAPI 3.0.x #78

tanvp112 opened this issue Dec 6, 2019 · 1 comment
Labels
good first issue Good for newcomers

Comments

@tanvp112
Copy link

tanvp112 commented Dec 6, 2019

Hi,

I tried to use create-fastify-app with openapi specification version 3.0.1. Example converted v2 petstore swagger on editor.swagger.io to v3. But fastify-app failed with message 'parameter must contain a valid Open Api Version 2.0 or 3.0.x'. Source:

const parse = (content) => {
if (content.swagger && content.swagger.indexOf('2.0') === 0) {
return V2.parse(content)
}

throw new Error('parameter must contain a valid Open Api Version 2.0 or 3.0.x')
}

Would like to check if create-fastify-app only supports 2.0?

Thanks.

@davidedantonio
Copy link
Owner

@tanvp112 Actually create-fastify-app support only v2 version swagger. V3 is not implemented yet.
If you want you can send a PR.

It would be very nice if we started to have many collaborators

@davidedantonio davidedantonio added the good first issue Good for newcomers label Jan 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants