-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
OAS3 support for sanic-openapi3 #210
Conversation
Checking the merge conflict... |
n.b. on the tests @astagi has some ideas for improvements we discussed via email, but could be good for a separate pull requests to get this out of the way |
Looks great. Thanks to @artcg @ioggstream @ruckc and anyone else that helped in this. What about documentation? |
Documentation can mostly be adapted from the current doc except replacing Maybe someone who feels like it could look at it with some examples when they have some free time |
Ok, I'll improve tests in another PR. Tests for oas3 implementation use |
@artcg @ahopkins before opening an issue or start working on the feature, I'd like to discuss a possible code refactoring.
what do you think? |
Sure that is a nice idea, I think also necessary to keep the other import for backcompatibility, so from sanic_openapi import doc, swagger_blueprint —> v2 from sanic_openapi.swagger2 import doc, swagger_blueprint —> v2 from sanic_openapi.oas3 import openapi/doc, oas3_blueprint —> v3 sent from my phone sorry for poor formatting |
I'm not personally keen on the naming difference: Now, I get it that this is somewhat different, and as I am not a user of this package I really know little about its architecture. I just push the merge button when someone else needs me to 😆 On a different note, there was some conversation that the @sanic-org/steering-council had about this package in general at our last meeting. That you guys are actively working on it is great news. I know that @vltr had some ideas on ways to improve or to take this going forwards. |
Yes I agree about that, the main reason for the differences there is that when openapi3 released they changed the naming usage in some cases, but could be a good idea to just make it the same across the board anyway, personally I like openapi better, but swagger is needed for the json file output to keep intact with the spec for the ui I believe |
Also I think breaking backcompatibility with the import naming wouldn't be the end of the world, since if anyone is using this in production they should be specifying the version anyway, and then it is an easy fix on their end to change the naming |
So I think to conclude, something like this is my preference, definitely happy to hear other peoples thoughts too:
|
See historic conversation in
#194
and
#179