-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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]: attributes are moved to allOf instead of in the root of an object after updating from 6.5.0 to 6.6.2 #2964
Comments
We don't explicitly write out the JSON, we delegate it to Microsoft.OpenApi. That dependency was updated to the latest release (1.6.14) as part of the 6.6.x release (#2795), so I would have thought that if this is a bug, it should be logged there. |
Okay, is there anything that I need to do? |
I would suggest opening an issue in their repo. |
Turns out it's now the expected behavior: #2268 |
This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Describe the bug
The left side is generated through swagger cli with version 6.5.0 of the library, and the right sight is generated after updating to 6.6.2:
When this is now used to generate a client from it it contains the following properties:
Expected behavior
Left Side
Actual behavior
Right Side
Steps to reproduce
Create an empty type that inherits from a base class. We are using
UseOneOfForPolymorphism
as well as:Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
6.6.2
.NET Version
net8.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: