From cd249652380ad3d30f9c8a31e5dac4b46bdd1370 Mon Sep 17 00:00:00 2001 From: Oliver THEBAULT Date: Fri, 31 May 2024 17:27:20 +0200 Subject: [PATCH 1/2] fix(website): OpenAPI home illustration --- packages/website/static/tsp-samples/openapi3/hero/main.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } From 05d3dee8fb336688f2e659000b08731a3d6f5400 Mon Sep 17 00:00:00 2001 From: Oliver THEBAULT Date: Fri, 31 May 2024 15:33:45 +0000 Subject: [PATCH 2/2] fix: corresponding openapi.yaml --- .../website/static/tsp-samples/openapi3/hero/out/openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.