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
Add support for OpenAPI 3.0 #4549
Comments
As mentioned in the PR, version 3.0 is not yet supported. @kingthorin, @psiinon should we update to the RC or wait for final version of swagger-parser 2.0.0? |
@thc202 Do you have an idea when support for version 3.0 will be added? |
I think it's a level of effort trade-off. If it's a 10min job then go for it I guess. If it's gonna take hours then it may as well wait. For my 2 cents anyway. |
👍 |
OpenAPI 3.0 became official at the end of July (2018): https://swagger.io/blog/news/announcing-openapi-3-0/ |
I have some problems importing C# interfaces with nullable types. OAS 3.0 supports nullable. This might be an additional reason to prioritize this. |
👍 |
Is there any sample OpenAPI 2.0 project that can be used to test the OpenAPI scanning? |
https://github.com/OAI/OpenAPI-Specification/tree/master/examples/v2.0/json ? |
Its been a year, any updates? |
Sadly no. No one has taken interest in addressing this. |
@coobr01 you could always put a bounty on it and see if that spurs any action: |
I'm also very interested in OpenAPI 3 support, maybe for now is there kid of workarround? |
Hi dsever, as a workaround, you can use an API converter tool (e.g., api-spec-converter) to convert your OpenAPI v3 spec to swagger v2 and finally import this in ZAP. This worked for me. |
I was looking for something like that, I will give a try. Tnx |
Hello, Thanks, |
@secdevmx thats great! We'll look at your changes asap. |
Great work! |
@secdevmx sorry for the delay - we've been distracted by other things :/ |
OpenAPI v3.0 support would be great |
Both OpenAPI 3.0 and Swagger 2.0 are complex systems that share a lot of concepts but not a lot of common structure. Asking folks to learn 2.0 just to create documents for input to ZAP is a bummer. I'd rather encourage colleagues to put their time and energy into OpenAPI 3.0. |
I'm not aware of us doing that. Someone in the community may have suggested that as a work around. (Given the current support/functionality.) Also to be clear, Swagger vs OpenAPI: one is a spec, the other tools implementing the spec. Chances are throughout the history of this issue/ticket they've been used improperly (by all of us, myself included). https://swagger.io/blog/api-strategy/difference-between-swagger-and-openapi/ Anyway, the good news is that as you can see in the history of this issue a Pull Request adding OpenAPI v3 support was opened just under a month ago. It's a non-trivial change, it's been through one review, we know it's functionality many are interested in. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When trying to import an OpenAPI 3.0 .json file, using the OpenAPI extension, I receive the error 'Failed to parse OpenAPI definition'. Is there support for the OpenAPI 3.0 type?
The text was updated successfully, but these errors were encountered: