We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A model property typed as an array of polymorphic models stores the base class struct.
My yaml defines these three models:
In addition, I have a model named doc that includes an array of section_base.
Getting a response from the server, the parsing works, but only for the base model (section_base struct) and not for the other section types.
Is it supported? Am I doing something wrong?
2.4.0-SNAPSHOT
...
section_base: type: object discriminator: section_type required: - section_type properties: uid: type: string section_type: type: string title: type: string images_section: allOf: - $ref: '#/definitions/section_base' - type: object properties: desc: type: string texts_section: allOf: - $ref: '#/definitions/section_base' - type: object properties: prefix: type: string
-l swift4
#6941
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
A model property typed as an array of polymorphic models stores the base class struct.
My yaml defines these three models:
In addition, I have a model named doc that includes an array of section_base.
Getting a response from the server, the parsing works, but only for the base model (section_base struct) and not for the other section types.
Is it supported? Am I doing something wrong?
Swagger-codegen version
2.4.0-SNAPSHOT
Swagger declaration file content or url
...
...
Command line used for generation
-l swift4
Related issues/PRs
#6941
The text was updated successfully, but these errors were encountered: