typespec
typespec copied to clipboard
[Bug]: behavior generated body model from http operation
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 original Inner model, instead of replacing it with an anonymous model without metadata properties. 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
- [X] Follow our Code of Conduct
- [X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.