[Bug]: Weird behavior for spread model with additional properties #4757
Labels
bug
Something isn't working
needs-area
needs-info
Mark an issue that needs reply from the author or it will be closed automatically
Describe the bug
For this spec which is simplified from a service definition here, there is a usage of spread model with additional properties (though i think it should be banned). Also, the http body is composed from both the spread thing and azure core traits thing, then the weird thing happened, the http body parameter type will have a query parameter from the trait, which will not happen is the spread model has no additional properties.
I'm wondering if it is a bug for body resolving. But I think a good solution is not allow to spread model with additional properties.
Reproduction
Compile with the playground or the spec provided.
Checklist
The text was updated successfully, but these errors were encountered: