typespec icon indicating copy to clipboard operation
typespec copied to clipboard

[Bug]: behavior generated body model from http operation

Open tadelesh opened this issue 1 year ago • 0 comments

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

tadelesh avatar May 22 '24 09:05 tadelesh