Skip to content

Commit fd091ca

Browse files
committed
fix(zod): Docs missing generateEachHttpStatus option
1 parent 852dce7 commit fd091ca

File tree

1 file changed

+23
-1
lines changed
  • docs/src/pages/reference/configuration

1 file changed

+23
-1
lines changed

docs/src/pages/reference/configuration/output.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ Gives you the possibility to use the `example`/`examples` fields from your OpenA
370370

371371
Type: `Boolean`.
372372

373-
Gives you the possibility to generate mocks for all the HTTP statuses in the `responses` fields in your OpenAPI specification.
373+
Gives you the possibility to generate mocks for all the HTTP statuses in the `responses` fields in your OpenAPI specification. By default only the 200 OK response is generated.
374374

375375
#### baseUrl
376376

@@ -1165,6 +1165,28 @@ module.exports = {
11651165
};
11661166
```
11671167

1168+
##### generateEachHttpStatus
1169+
1170+
Type: `Boolean`.
1171+
1172+
Gives you the possibility to generate mocks for all the HTTP statuses in the `responses` fields in your OpenAPI specification. By default only the 200 OK response is generated.
1173+
1174+
```js
1175+
module.exports = {
1176+
petstore: {
1177+
output: {
1178+
...
1179+
override: {
1180+
zod: {
1181+
generateEachHttpStatus: true,
1182+
},
1183+
},
1184+
},
1185+
...
1186+
},
1187+
};
1188+
```
1189+
11681190
#### mock
11691191

11701192
Type: `Object`.

0 commit comments

Comments
 (0)