Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uptake change to body consistency #293

Merged
merged 19 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
timotheeguerin committed Apr 16, 2024
commit 6bd873bedce56a9b3d56977a996cbc874fe4bb9d
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ it("Does not emit a warning for a long-running post operation that satisfies the
@pollingOperation(Widgets.getStatus, {widgetName: RequestParameter<"name">, statusId: ResponseProperty<"operationId">})
@finalOperation(Widgets.getWidget, {widgetName: RequestParameter<"name">})
@armResourceAction(Widget)
@post create(...KeysOf<Widget>, @body body: Widget): {
@post create(...KeysOf<Widget>, @bodyRoot body: Widget): {
@statusCode code: "202";
@header("x-ms-operation-id") operationId: string;
} | {
Expand Down Expand Up @@ -192,10 +192,10 @@ it("Emits a warning for a long-running post operation that has a 202 response wi
@pollingOperation(Widgets.getStatus, {widgetName: RequestParameter<"name">, statusId: ResponseProperty<"operationId">})
@finalOperation(Widgets.getWidget, {widgetName: RequestParameter<"name">})
@armResourceAction(Widget)
@post create(...KeysOf<Widget>, @body body: Widget): {
@post create(...KeysOf<Widget>, @bodyRoot body: Widget): {
@statusCode code: "202";
@header("x-ms-operation-id") operationId: string;
@body body: Widget;
@bodyRoot body: Widget;
} | ErrorResponse;
}`
)
Expand Down Expand Up @@ -239,7 +239,7 @@ it("Emits a warning for a long-running post operation that has a 200 response wi
@pollingOperation(Widgets.getStatus, {widgetName: RequestParameter<"name">, statusId: ResponseProperty<"operationId">})
@finalOperation(Widgets.getWidget, {widgetName: RequestParameter<"name">})
@armResourceAction(Widget)
@post create(...KeysOf<Widget>, @body body: Widget): {
@post create(...KeysOf<Widget>, @bodyRoot body: Widget): {
@statusCode code: "202";
@header("x-ms-operation-id") operationId: string;
} | {
Expand Down Expand Up @@ -288,7 +288,7 @@ it("Emits a warning for a long-running post operation that has invalid response
@pollingOperation(Widgets.getStatus, {widgetName: RequestParameter<"name">, statusId: ResponseProperty<"operationId">})
@finalOperation(Widgets.getWidget, {widgetName: RequestParameter<"name">})
@armResourceAction(Widget)
@post create(...KeysOf<Widget>, @body body: Widget): {
@post create(...KeysOf<Widget>, @bodyRoot body: Widget): {
@statusCode code: "203";
@header("x-ms-operation-id") operationId: string
} | ErrorResponse;
Expand Down
Loading