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
The typescript generator generators does not include attributes without specifying additional properties:
PetListEntry
Pet
export interface PetNew { name: string; } export interface Pet { id: string; name: string; } export interface PetListEntry { }
4.2.2
openapi: 3.0.2 info: title: api version: 1.0.0 paths: /pets: get: summary: list all pets responses: 200: description: An array of pets content: application/json: schema: type: array items: $ref: '#/components/schemas/PetListEntry' post: summary: create new pet requestBody: description: Pet to be created required: true content: application/json: schema: $ref: '#/components/schemas/PetNew' responses: 201: description: Newly created pet content: application/json: schema: $ref: '#/components/schemas/Pet' components: schemas: Pet: allOf: - type: object required: - id properties: id: type: string - $ref: '#/components/schemas/PetNew' PetListEntry: allOf: - $ref: '#/components/schemas/Pet' PetNew: type: object required: - name properties: name: type: string
$ openapi-generator-cli-4.2.2.jar generate -g typescript-angular -i api.yaml
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.
Can confirm this... Fix would be nice
Successfully merging a pull request may close this issue.
Bug Report Checklist
Description
The typescript generator generators does not include attributes without specifying additional properties:
PetListEntry
is empty and does not extendPet
openapi-generator version
4.2.2
OpenAPI declaration file content
Command line used for generation
Steps to reproduce
The text was updated successfully, but these errors were encountered: