Skip to content
New issue

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

[Bug]: OpenAPI generator version 7.10 is not working with swagger 2 and allOf with only one element #2674

Open
matthieu-crouzet opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working triage

Comments

@matthieu-crouzet
Copy link
Contributor

matthieu-crouzet commented Jan 8, 2025

Package name

schematics

Package version

11.6.0-rc

Reproduction steps

Generate a SDK with a specification containing an API using only once a model.
This model should be defined by the following format:

ModelWithIssue:
  type: object
  description: 'model with issue'
  allOf:
    - $ref: '#/definitions/ValidModel

Current result

The SDK is generated but the import of ModelWithIssue is missing in the api file.
So build task is not working.

Expected result

Import should be present and build task should run successfully

Additional comments

Issue appears with OpenAPI generator version 7.10, track on their side with this issue.

On our side we disabled the upgrade of OpenAPI generator with renovate.
It could be reactivated once we have added an integration test that generate a SDK with this specificity in the specification.
So we would be able to see easily when the issue will be fixed thanks to renovate.

@kpanot
Copy link
Contributor

kpanot commented Jan 8, 2025

As discussed, the mitigation is to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants