You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/reference/configuration/output.md
+36
Original file line number
Diff line number
Diff line change
@@ -1379,3 +1379,39 @@ module.exports = {
1379
1379
},
1380
1380
};
1381
1381
```
1382
+
1383
+
### allParamsOptional
1384
+
1385
+
Type: `Boolean`
1386
+
1387
+
Valid values: true or false. Defaults to false. Applies to all clients, but probably only makes sense for Tanstack Query.
1388
+
1389
+
Use this property to make all parameters optional. This is useful to take advantage of the Orval's auto-enable feature for Tanstack Query, see https://github.com/anymaniax/orval/pull/894
1390
+
1391
+
```js
1392
+
module.exports= {
1393
+
petstore: {
1394
+
output: {
1395
+
allParamsOptional:true,
1396
+
},
1397
+
},
1398
+
};
1399
+
```
1400
+
1401
+
### urlEncodeParameters
1402
+
1403
+
Type: `Boolean`
1404
+
1405
+
Valid values: true or false. Defaults to false. **Note:** this only works for Tanstack Query clients for now.
1406
+
1407
+
Use this property to enable URL encoding of path/query parameters. This is highly recommended, and will probably become a default in the future, see https://github.com/anymaniax/orval/pull/895
Copy file name to clipboardExpand all lines: packages/core/src/types.ts
+9
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import {
9
9
ResponsesObject,
10
10
SchemaObject,
11
11
}from'openapi3-ts';
12
+
// @ts-ignore // FIXME when running `yarn test` getting `orval:test: ../core/src/types.ts(12,34): error TS7016: Could not find a declaration file for module 'swagger2openapi'. '/home/maxim/orval/node_modules/swagger2openapi/index.js' implicitly has an 'any' type.`
12
13
importswagger2openapifrom'swagger2openapi';
13
14
importtype{allLocales}from'@faker-js/faker';
14
15
@@ -55,6 +56,7 @@ export type NormalizedOutputOptions = {
0 commit comments