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.
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