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
In the latest version, generating with typescript-angular, models that use "allOf" do not contain the inherited properties any more.
This occurs with v4.3.0. With v4.1.2 this worked fine.
Api spec:
openapi: 3.0.2 info: title: api version: 1.0.0 paths: /pet: get: summary: list all pets responses: 200: description: pet with name content: application/json: schema: $ref: '#/components/schemas/PetName' components: schemas: Pet: type: object properties: id: type: string PetName: allOf: - $ref: '#/components/schemas/Pet' - type: object properties: name: type: string
Result:
import { PetNameAllOf } from './petNameAllOf'; import { Pet } from './pet'; export interface PetName { name?: string; }
Expected result would be along:
export interface PetName { id?: string; name?: string; }
java -jar openapi-generator-cli-4.3.0.jar generate -g typescript-angular -i api.yml
Use commandline and example from above
Maybe related:
The text was updated successfully, but these errors were encountered:
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Sorry, something went wrong.
@daniel-sc can you please try the latest master? I just merged #5992 which may have fixed the issue for you.
@wing328 yes, with current master (8661ed3) it works as expected. For when can we expect a release containing this fix?
Roughly a week assuming no postponement.
Thanks for confirming the latest master works for you.
No branches or pull requests
Bug Report Checklist
Description
In the latest version, generating with typescript-angular, models that use "allOf" do not contain the inherited properties any more.
openapi-generator version
This occurs with v4.3.0.
With v4.1.2 this worked fine.
OpenAPI declaration file content or url
Api spec:
Result:
Expected result would be along:
Command line used for generation
Steps to reproduce
Use commandline and example from above
Related issues/PRs
Maybe related:
The text was updated successfully, but these errors were encountered: