Skip to content

Commit

Permalink
should use bodyRoot for model containing query etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Jun 24, 2024
1 parent 2ee0539 commit 19c8131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typespec-tests/tsp/naming.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ interface NamingOp {
@summary("summary of POST op")
@doc("description of POST op")
@post
post(@body body: Request): Response | ErrorResponse;
post(@bodyRoot body: Request): Response | ErrorResponse;

getAnonymous(): {
name: string;
Expand Down

0 comments on commit 19c8131

Please sign in to comment.