-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[BUG] Version 4 no longer supports additionalProperties with boolean value #2854
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
see also OAI/OpenAPI-Specification#668 |
The link provided by @macjohnny is somewhat misleading. At first glance, it seems to imply that boolean Linked from there is OAI/OpenAPI-Specification#894 which clearly states that boolean And the current (3.0.2) text of the spec is very clear about it: https://swagger.io/specification/#properties
This has always been the case in all of the published OAS 3.0 specs: The Swagger 2.0 spec is not as explicit (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md, only relevant links have been preserved):
but it's a reference to JSON Schema Specification Draft 4. In particular, https://tools.ietf.org/html/draft-fge-json-schema-validation-00 states:
Since having |
This bug has also broken our development pipeline, where we use the Bug is still present on image Thank you. |
cc @wing328 |
As mentioned by sabba, disabling the validation can be used as a workaround in the meantime. |
@wing328 by any chance is there a way to escalate it? It's really nasty to disable validation because of that. |
@bopm yes, it's a regression in the Swagger Parser. Please open an issue in that repo instead. |
Well, it should be fixing that, but for some reason it's not. I am pulling 4.0.1 from Docker and it keeps telling me |
Can that be connected to missing release 2.0.13 here? |
I don't think so ... cc @jmini who works on the parser we maintain |
This appears fixed for me with the parser v2.0.13-OpenAPITools.org-2 which is included in recent 4.0.3 snapshots (I tried |
@ricellis thanks for confirming the issue has been addressed. Issue closed. |
@ricellis I really appreciate your feedback on this. It helps to close issue. |
Description
Generator no longer supports
additonalProperties
with boolean value. Error-attribute components.schemas.<...>.additionalProperties is not of type 'object'
being returned for such.openapi-generator version
It's regression for 4.0.0
OpenAPI declaration file content or url
The text was updated successfully, but these errors were encountered: