diff --git a/docs/src/pages/reference/configuration/output.md b/docs/src/pages/reference/configuration/output.md index 863205e28..b1f6babfa 100644 --- a/docs/src/pages/reference/configuration/output.md +++ b/docs/src/pages/reference/configuration/output.md @@ -370,7 +370,7 @@ Gives you the possibility to use the `example`/`examples` fields from your OpenA Type: `Boolean`. -Gives you the possibility to generate mocks for all the HTTP statuses in the `responses` fields in your OpenAPI specification. +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. #### baseUrl @@ -1165,6 +1165,28 @@ module.exports = { }; ``` +##### generateEachHttpStatus + +Type: `Boolean`. + +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. + +```js +module.exports = { + petstore: { + output: { + ... + override: { + zod: { + generateEachHttpStatus: true, + }, + }, + }, + ... + }, +}; +``` + #### mock Type: `Object`.