From 2e572641099050b19ca6d766aae9a561f5a92dc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 05:31:43 +0000 Subject: [PATCH 1/3] Initial plan From 35d813644267385e35a8ec39ae4dc10269c40a09 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 05:43:03 +0000 Subject: [PATCH 2/3] Fix bulletPointsModel API to match runtime behavior - Changed response type from NoContentResponse to OkResponse - Updated request body to wrap model in 'input' property - Updated scenarioDoc to reflect correct input format Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- packages/http-specs/specs/documentation/main.tsp | 4 ++-- packages/http-specs/specs/documentation/mockapi.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/http-specs/specs/documentation/main.tsp b/packages/http-specs/specs/documentation/main.tsp index 93808f9d1ba..14a3f6cd5ee 100644 --- a/packages/http-specs/specs/documentation/main.tsp +++ b/packages/http-specs/specs/documentation/main.tsp @@ -87,13 +87,13 @@ namespace Lists { Expected input: ```json { - "prop": "Simple" + "input": {"prop": "Simple"} } ``` """) @post @route("/bullet-points/model") - op bulletPointsModel(input: BulletPointsModel): NoContentResponse; + op bulletPointsModel(input: BulletPointsModel): OkResponse; /** * Steps to follow: diff --git a/packages/http-specs/specs/documentation/mockapi.ts b/packages/http-specs/specs/documentation/mockapi.ts index 446aac99f36..fee29a156cb 100644 --- a/packages/http-specs/specs/documentation/mockapi.ts +++ b/packages/http-specs/specs/documentation/mockapi.ts @@ -37,7 +37,9 @@ Scenarios.Documentation_Lists_bulletPointsOp = createGetServerTests( Scenarios.Documentation_Lists_bulletPointsModel = createPostServerTests( "/documentation/lists/bullet-points/model", { - prop: "Simple", + input: { + prop: "Simple", + }, }, ); From 717ea6a968ed7640b172500c5cee0ec6bc59ca7d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 07:31:41 +0000 Subject: [PATCH 3/3] Add changelog for bulletPointsModel API fix Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> --- .../fix-bulletpointsmodel-api-2025-12-12-07-23-18.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chronus/changes/fix-bulletpointsmodel-api-2025-12-12-07-23-18.md diff --git a/.chronus/changes/fix-bulletpointsmodel-api-2025-12-12-07-23-18.md b/.chronus/changes/fix-bulletpointsmodel-api-2025-12-12-07-23-18.md new file mode 100644 index 00000000000..18d2a37a591 --- /dev/null +++ b/.chronus/changes/fix-bulletpointsmodel-api-2025-12-12-07-23-18.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@typespec/http-specs" +--- + +Fix bulletPointsModel API signature to match runtime behavior - changed response type to OkResponse and updated request body structure