Closed dacasals closed 2 years ago
Thanks for the PR! DO you still need OAS2? You cannot upgrade to OAS3?
Thanks for the PR! DO you still need OAS2? You cannot upgrade to OAS3?
Thanks to you!, looks like i am a little outdated, i tried a fast migration few moth ago, when OAS3 was in beta and it did not go well. But it is because I have a hack function that generates the sanic_openapi models from Pydantic models that I need to refactor.
You should look into Sanic Extensions. It should allow you to use pydantic models. IIRC there may still be a bug on the validation, but I want to get that fixed soon. And, if you're only using to build docs right now it should work.
I'll get this released soon
You should look into Sanic Extensions. It should allow you to use pydantic models. IIRC there may still be a bug on the validation, but I want to get that fixed soon. And, if you're only using to build docs right now it should work.
Thanks, i will try with Sanic Extensions, I am interested in the doc but also in the generated swagger specification because I want to generate the SDK using the swagger.json with the openapi-generator. That's way i am trying to solve some issues with the OAS2.
…in the route paths specifications.
When you use Sanic HTTPMethodView and define multiple methods in the views, multiple operationId with same string are created. This commit include extra method string to generate different operationId's.
The swagger result is: