Skip to content

Commit

Permalink
feat: allParamsOptional generated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim-Mazurok committed Nov 29, 2023
1 parent 2077ded commit 9fc3a9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/vue-query/orval.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default defineConfig({
useInfiniteQueryParam: 'limit',
},
},
allParamsOptional: true, // TODO: this this not a default, maybe consider creating a separate sample to test default behaviour still works; Definitely add a generated test (same as named-params for other clients)
allParamsOptional: true, // TODO: this this not a default, maybe consider creating a separate sample to test default behaviour still works; There is a generated test tho (same as named-params for other clients)
},
input: {
target: './petstore.yaml',
Expand Down
12 changes: 12 additions & 0 deletions tests/configs/vue-query.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ export default defineConfig({
},
},
},
allParamsOptional: {
output: {
target: '../generated/vue-query/all-params-optional/endpoints.ts',
schemas: '../generated/vue-query/all-params-optional/model',
client: 'vue-query',
mock: true,
allParamsOptional: true,
},
input: {
target: '../specifications/petstore.yaml',
},
},
// Unsupported for now, see for context: https://github.com/anymaniax/orval/pull/931#issuecomment-1752355686
// namedParameters: {
// output: {
Expand Down

0 comments on commit 9fc3a9d

Please sign in to comment.