Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/http-specs/specs/documentation/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion packages/http-specs/specs/documentation/mockapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Scenarios.Documentation_Lists_bulletPointsOp = createGetServerTests(
Scenarios.Documentation_Lists_bulletPointsModel = createPostServerTests(
"/documentation/lists/bullet-points/model",
{
prop: "Simple",
input: {
prop: "Simple",
},
},
);

Expand Down
Loading