Skip to content

Commit

Permalink
chore: add petstore tests for each mode to zod (orval-labs#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
soartec-lab authored Feb 11, 2024
1 parent 1c39aab commit 12072f8
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions tests/configs/zod.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,56 @@ export default defineConfig({
target: '../specifications/circular.yaml',
},
},
petstore: {
output: {
target: '../generated/zod/petstore/endpoints.ts',
schemas: '../generated/zod/petstore/model',
client: 'zod',
mock: true,
},
input: {
target: '../specifications/petstore.yaml',
override: {
transformer: '../transformers/add-version.js',
},
},
},
petstoreTagsSplit: {
output: {
target: '../generated/zod/petstore-tags-split/endpoints.ts',
schemas: '../generated/zod/petstore-tags-split/model',
mock: true,
mode: 'tags-split',
client: 'zod',
},
input: {
target: '../specifications/petstore.yaml',
},
},
petstoreSplit: {
output: {
target: '../generated/zod/split/endpoints.ts',
schemas: '../generated/zod/split/model',
mock: true,
mode: 'split',
client: 'zod',
},
input: {
target: '../specifications/petstore.yaml',
},
},
petstoreTags: {
output: {
target: '../generated/zod/tags/endpoints.ts',
schemas: '../generated/zod/tags/model',
mock: true,
mode: 'tags',
client: 'zod',
},
input: {
target: '../specifications/petstore.yaml',
},
},
nestedArrays: {
output: {
target: '../generated/zod',
Expand Down

0 comments on commit 12072f8

Please sign in to comment.