Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit a365c76

Browse files
committed
feat: output both openapi 3.1 and 3.0, new deployment strategy
1 parent 2b69bc7 commit a365c76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deploy-openapi-spec.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
- name: Commit OpenAPI specification to repository
3232
run: |
3333
tree -L 2
34-
mv ./polyproto/tsp-output/schema/openapi.polyproto.core.v1.0-beta.1.yaml ./build/core-openapi3.yaml
35-
mv ./polyproto/tsp-output/schema/openapi.polyproto.chat.v0.1.0-alpha.0.yaml ./build/chat-openapi3.yaml
34+
mv -f ./polyproto/tsp-output/schema/* ./build/
3635
git add ./build/*
37-
git commit -m "[bot]update openapi3 schema" || true
36+
git commit -m "chore(bot): update openapi3 schema" || true
3837
git push || true

polyproto/tspconfig.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ emit:
33
options:
44
"@typespec/openapi3":
55
emitter-output-dir: "{output-dir}/schema"
6+
output-file: "{service-name}-{version}.yaml"
67
openapi-versions:
7-
- 3.1.0
8+
- "3.1.0"
9+
- "3.0.0"

0 commit comments

Comments
 (0)