Skip to content

Commit

Permalink
fix(zod): Docs missing generateEachHttpStatus option (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 22, 2024
1 parent 2fde073 commit e2ed21c
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/src/pages/reference/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit e2ed21c

Please sign in to comment.