Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
9 stars 29 forks source link

[Bug]: autorest emitter problem of multipart + @bodyRoot + spread #1128

Open tadelesh opened 2 weeks ago

tadelesh commented 2 weeks ago

Describe the bug

For parameter with spread model with @bodyRoot on a model property with multipart property and other query property, the autorest emitter behavior is weird. It will generate the header parameter twice and also will put the header parameter in the body model.

Reproduction

See playground.

Checklist