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
Using the latest version (v1.11.1-0.20220727161132-874b0a16ac55) I have a schema like
x: allOf: - $ref: '#/components/schemas/y-base' properties: a: .... b: $ref: '#/components/schemas/b' type: object
I get code like:
// X defines model for x. type X struct { // Embedded struct due to allOf(#/components/schemas/y-base) YBase `yaml:",inline"` }
if the old-merge-schemas: true is true, and
old-merge-schemas: true
// X defines model for x. type X YBase
when its false, the other properties all ignored
The text was updated successfully, but these errors were encountered:
It seems a similar issue has been reported in OpenAPITools/openapi-generator, which normalizes such cases by converting it to allOf-only style. ref
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Using the latest version (v1.11.1-0.20220727161132-874b0a16ac55)
I have a schema like
I get code like:
if the
old-merge-schemas: true
is true, andwhen its false, the other properties all ignored
The text was updated successfully, but these errors were encountered: