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
spacether
changed the title
[BUG] [CORE] DO not have the inline model resolver extract composed schemas
[BUG] [CORE] Don't have the inline model resolver extract composed schemas
Feb 6, 2020
Bug Report Checklist
Description
Per our conversation in #4906
When parsing a composed schema, the inline model resolver should not extract composed schemas per the Openapi spec:
When using the discriminator, inline schemas will not be considered.
openapi-generator version
master branch
OpenAPI declaration file content or url
Command line used for generation
use the python generator with this spec
Steps to reproduce
Debug the models and you will see that new models are created from the composed inline schemas. They should not be extracted.
Related issues/PRs
#4906
Suggest a fix
Don't extract the inline schemas when a composed schema has a discriminator
The text was updated successfully, but these errors were encountered: