-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
enhancementNew feature or requestNew feature or request
Description
hello,
Thanks for the great library.
I was wondering if there is any plan to support readOnly / writeOnly
If the property is marked as readOnly being true and is in the required list, the required will take effect on the response only
Basically right now, if a schema contains properties marked as readOnly or writeOnly and required, the validation fails for both request and response because ajv just ignores readOnly / writeOnly fields.
If not, I can probably work on a PR later this month to omit readOnly / writeOnly properties from the required array (respectively for request / response)
xeoneux, bricef, vinujohn, elby22 and BlakeHyde
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request