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

Attributes are moved to allOf instead of in the root of an object after updating Swashbuckle.AspNetCore from 6.5.0 to 6.6.2 #1711

Closed
DerGary opened this issue Jun 28, 2024 · 1 comment

Comments

@DerGary
Copy link

DerGary commented Jun 28, 2024

Describe the bug
We are using swagger cli to create a openapi json file. After Updating to the newest version the generated json file changed:
image
This seems to be wrong, as the hey-api client generator generates a wrong type out of it:
image

OpenApi File To Reproduce
We are generating it from source so there is not open api file.

Expected behavior
I expect the previous behaviour, which is the left side of the comparison image.

Additional context
I also opened a bug in the Swashbuckle repository first, and was redirected from there.
Swashbuckle Issue

@MaggieKimani1
Copy link
Contributor

@DerGary I don't think this is an issue with OpenAPI.NET.
I've followed the issue trail and it seems this was an intended fix on the Swashbuckle side where the resulting schema is placed inside the allOf object domaindrivendev/Swashbuckle.AspNetCore#2815
Feel free to reopen this issue if need be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants