-
Notifications
You must be signed in to change notification settings - Fork 168
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]: behavior of generated body model from http operation #3421
Comments
This seems by design. The metadata properties from the |
@markcowl OpenAPI result is good. I expect the
Expected:
|
This is by design, the HttpBody contains an indicator that the model may contain metadata types that need to be removed, and you can use the metadata apis to do this. The idea is to preserve the model that the spec author encoded, because they think these metadata properties are integral to the model (e.g. eTag headers may be crucial to represent with the model). Note that there is a separate design issue for making a better presentation of the payload on the wire: #3012. |
Hi @tadelesh. Since there hasn't been recent engagement, we're going to close this out. Please feel free to reopen if you have any further questions or concerns. |
Describe the bug
for this example, we will get two anonymous model for request body and response body. however, for the
inner
property, it keeps the originalInner
model, instead of replacing it with an anonymous model without metadata properties. it seems the metadata handling is not propagated to inner model. idk if it is a bug or by design. it seems kind of inconsistent.Reproduction
compile with given example and see the result of http operation.
Checklist
The text was updated successfully, but these errors were encountered: