-
Notifications
You must be signed in to change notification settings - Fork 154
OpenAPI 3? #88
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
Comments
This is underway in You can pass in app.config.update({
'APISPEC_SPEC': APISpec(
#...
openapi_version='3.0.0',
plugins=['apispec.ext.marshmallow'],
),
}) |
In theory, yes. But it breaks Swagger completely. Maybe it's just a matter of updating Swagger? (If so, then the work required should be much smaller :-) ) |
Alright, I'm using a Swagger UI I'm serving myself, with the latest code from them, and I just hit a bug in flask-apispec: in the This is the problematic line: https://github.com/jmcarp/flask-apispec/blob/master/flask_apispec/apidoc.py#L51 |
@diogobaeder We would certainly review and merge a PR addressing that bug. Also, if you'd like to send a PR updating the Swagger UI version, we'd merge that too! |
Nice! I'll try to push some improvements in that direction. :-) |
It might be worth evaluating ReDoc, which is actively developed and supports OpenAPI 2 and 3. |
Nice, thanks for the hint :-) |
The related issue in apispec is done so it should be doable |
Hello All, EDIT: Just wondering if there is any update on this issue as i'm experiencing the following error which appears to be a result of a call in flask-apispec which is perhaps not dealing the the locations parameter for @use_kwargs in the correct way...? I've tried to wrap my head around what that code is doing but i'm getting alittle lost & had a look through the OAI 3.0.0 spec to figure out how this is supposed to be treated but havent had much luck there either as far as understanding goes. Issue is as follows:
|
This seems stale but just in case, any updates on this? Looking to use flask-apispec but this is causing us problems. |
Any updates on OpenApi 3.0+ support? |
OpenAPI 3 has been supported by apispec for some time. I don't have time to look into what changes are needed in flask-apispec to fix compatibility, but I'd review a PR if someone sent one. |
Anything new on this? Flask-apispec is a great package, but incompatibility with openApi 3 greatly limits its usefulness |
Any updates on the broken swagger UI? |
No updates from me--I nor the original creator are actively adding features at the moment, but I do review/merge/release PRs occasionally. As I pointed out in my previous comment, apispec does support OpenAPI 3, so this is just waiting for someone to take this on and make a PR. |
The change, that worked for me was the following: Change line from
to
and method from
to
The function argument_to_params must be updated as well to:
Afterwards at least the rule-based methods work again, which might at least help to solve #138 , but I'm not sure, if this helps for entire support for OpenAPI 3. I don't know if these are the only elements creating a spec here. Should I submit a PR? |
+1 if flask-apispec has OpenAPI v3 support |
1 similar comment
+1 if flask-apispec has OpenAPI v3 support |
Hi,
Is there any plan to support OpenAPI 3? There's quite a few, and very important, changes on that version, which are immensely useful, like the support for
oneOf
for example.I can try to implement the changes and send a pull request, but I'd like to see some sign that this project is being actively maintained.
Thanks!
Diogo
The text was updated successfully, but these errors were encountered: