Skip to content

Commit

Permalink
docs: add suppressReadonlyModifier option to guide (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
soartec-lab authored May 22, 2024
1 parent ba24407 commit 64162f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/src/pages/reference/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -1770,3 +1770,23 @@ module.exports = {
},
};
```

### suppressReadonlyModifier

Type: `Boolean`

Valid Values: `true` or `false`.

Default Value: `false`.

When the `readonly` field is specified in `OpenAPI`, specify `readonly` in the `type` and `interface` fields output from the schema.

```js
module.exports = {
petstore: {
output: {
suppressReadonlyModifier: true,
},
},
};
```

0 comments on commit 64162f5

Please sign in to comment.