Skip to content

Commit

Permalink
chore: add using explode test case
Browse files Browse the repository at this point in the history
  • Loading branch information
soartec-lab committed Aug 31, 2024
1 parent 36b15bb commit 50e3a9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/configs/fetch.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,14 @@ export default defineConfig({
target: '../specifications/form-url-encoded.yaml',
},
},
parameters: {
output: {
target: '../generated/fetch/parameters/endpoints.ts',
schemas: '../generated/fetch/parameters/model',
client: 'fetch',
},
input: {
target: '../specifications/parameters.yaml',
},
},
});
9 changes: 9 additions & 0 deletions tests/specifications/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ paths:
required: false
schema:
type: boolean
- name: tag
in: query
description: include pets tag
required: false
explode: true
schema:
type: array
items:
type: string
responses:
'200':
description: A paged array of pets
Expand Down

0 comments on commit 50e3a9b

Please sign in to comment.