-
-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Labels
RSVP 👍👎Explicit request for reactions to gauge interest in resolving this issueExplicit request for reactions to gauge interest in resolving this issuefeature 🚀New feature or requestNew feature or request
Description
Description
Hi,
It would be great to have the option to force fields to be required when none are explicitly marked as required (i.e., required: []
).
In my project, the backend responses don’t consistently set fields as required, and this leads to a lot of overhead checking for undefined
values in the response objects.
The idea is to introduce a flag that forces fields in responses or requests to be treated as required by default—similar to what is shown in this pull request:
openapi-ts/openapi-typescript#1621
It would be nice to have something like this in the config:
responsesPropertiesRequiredByDefault
requestsPropertiesRequiredByDefault
Thanks!
Metadata
Metadata
Assignees
Labels
RSVP 👍👎Explicit request for reactions to gauge interest in resolving this issueExplicit request for reactions to gauge interest in resolving this issuefeature 🚀New feature or requestNew feature or request