-
Notifications
You must be signed in to change notification settings - Fork 343
Closed
Labels
bugSomething isn't workingSomething isn't workinglib:http-specsFor issues/prs related to the @typespec/http-specs packageFor issues/prs related to the @typespec/http-specs package
Description
typespec/packages/http-specs/specs/documentation/main.tsp
Lines 85 to 96 in 7157290
| @scenarioDoc(""" | |
| Test bullet points in model and enum documentation. | |
| Expected input: | |
| ```json | |
| { | |
| "prop": "Simple" | |
| } | |
| ``` | |
| """) | |
| @post | |
| @route("/bullet-points/model") | |
| op bulletPointsModel(input: BulletPointsModel): NoContentResponse; |
typespec/packages/http-specs/specs/documentation/mockapi.ts
Lines 37 to 42 in 7157290
| Scenarios.Documentation_Lists_bulletPointsModel = createPostServerTests( | |
| "/documentation/lists/bullet-points/model", | |
| { | |
| prop: "Simple", | |
| }, | |
| ); |
The related file shall make the following 2 fixes
- change response type of
op bulletPointsModeltoOkResponse - update expected request of
op bulletPointsModelto
{
"input": {"prop": "Simple"}
}NOTE: please fix main.tsp and mockapi.ts at the same time.
Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workinglib:http-specsFor issues/prs related to the @typespec/http-specs packageFor issues/prs related to the @typespec/http-specs package