You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Models are not generated if "type": object "additionalProperties": false in OAS 2.
if "additionalProperties" is removed, the model will be generated correctly.
It occurs regardless of the generator.
The regression started since v7.0.0
Thanks for the report!
This problem is caused by #15644, specifically by this change. I don't know what was the reason for this change. Do you remember, @wing328?
PS: Although I guess it's correct that the generated model should not be a MapSchema. We just need to ensure that it is still being generated at all.
The problem seems to be that the parser returns an instance of MapSchema, but we don't want to treat the schema as map.
Description
Models are not generated if "type": object "additionalProperties": false in OAS 2.
if "additionalProperties" is removed, the model will be generated correctly.
It occurs regardless of the generator.
The regression started since v7.0.0
openapi-generator version
latest - 7.4.0
OpenAPI declaration file content or url
Generation Details
docker run --rm -v $PWD:/app openapitools/openapi-generator-cli generate -i /app/petstore.json -g typescript-axios -o /app/output
Steps to reproduce
Related issues/PRs
Not sure this PR is related but since it was added in 7.0.0 and contains many changes related to additionlProperties I assume it is related.
#16227
Expected output vs Actual output
Actual:
Expected:
The text was updated successfully, but these errors were encountered: