-
Notifications
You must be signed in to change notification settings - Fork 137
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
OA 3.1. support #312
Comments
I have impression that it can't work with nullability feature in OpenApi 3.1 which is described as array:
The problematic code seems to be inside |
This should work:
|
Hi @juneidy ,
However, OpenAPI 3.1 introduces an alternative format to specify the type property as an array:
This is the format my library (NelmioApiDocBundle) uses for generating API specifications compliant with OpenAPI 3.1.0. The choice of library, though, isn't particularly relevant to the discussion. From our testing, it appears that ng-openapi-gen hasn't yet adopted this new syntax. Does anyone know if or when ng-openapi-gen plans to support this format? Thanks for any insights. |
It also doesn't appear to support |
This issue looks to be with this code:
If that could also have an array passed and if type is an array, check for null, then it should work |
I monkey patched that code and it allows the files to be generated. The "object" handlebars template also needs to be updated to put a "|" between multiple types. |
Can you provide @womblep object.handlebards updated template? Thanks. |
@vosecek sorry I dont have time to do a PR at the moment, I went down a different path to solve my problem. |
@womblep thanks, looks great. I achieved meanwhile to working solution by modifying method my solution (including skip
|
Any chances for this to be fixed in the upstream? |
Sorry, I've been quite busy and don't have any time left for this project lately. |
Does ng-openapi-gen support OA 3.1?
The text was updated successfully, but these errors were encountered: