-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgenerate.sh
More file actions
executable file
·39 lines (33 loc) · 1.07 KB
/
generate.sh
File metadata and controls
executable file
·39 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set -e
SCHEMA_BUILDER=zod
yarn openapi-code-generator \
--input ./openapi.yaml \
--output ./src/generated/server/koa \
--template typescript-koa \
--schema-builder "$SCHEMA_BUILDER" \
--extract-inline-schemas \
--grouping-strategy first-tag
yarn openapi-code-generator \
--input ./openapi.yaml \
--output ./src/generated/server/express \
--template typescript-express \
--schema-builder "$SCHEMA_BUILDER" \
--extract-inline-schemas \
--grouping-strategy first-tag
yarn openapi-code-generator \
--input ./openapi.yaml \
--output ./src/generated/client/fetch \
--template typescript-fetch \
--schema-builder "$SCHEMA_BUILDER" \
--extract-inline-schemas \
--enable-runtime-response-validation \
--override-specification-title "E2E Test Client"
yarn openapi-code-generator \
--input ./openapi.yaml \
--output ./src/generated/client/axios \
--template typescript-axios \
--schema-builder "$SCHEMA_BUILDER" \
--extract-inline-schemas \
--enable-runtime-response-validation \
--override-specification-title "E2E Test Client"