diff --git a/packages/website/static/tsp-samples/openapi3/hero/main.tsp b/packages/website/static/tsp-samples/openapi3/hero/main.tsp index 2d808ca6792..253d6e74d21 100644 --- a/packages/website/static/tsp-samples/openapi3/hero/main.tsp +++ b/packages/website/static/tsp-samples/openapi3/hero/main.tsp @@ -27,5 +27,5 @@ interface Pets { @route("/stores") interface Stores { list(@query filter: string): Store[]; - read(@path id: Store): Store; + read(@path id: string): Store; } diff --git a/packages/website/static/tsp-samples/openapi3/hero/out/openapi.yaml b/packages/website/static/tsp-samples/openapi3/hero/out/openapi.yaml index 08a9e97a43b..1fe34a2f79c 100644 --- a/packages/website/static/tsp-samples/openapi3/hero/out/openapi.yaml +++ b/packages/website/static/tsp-samples/openapi3/hero/out/openapi.yaml @@ -80,7 +80,7 @@ paths: in: path required: true schema: - $ref: '#/components/schemas/Store' + type: string responses: '200': description: The request has succeeded.