- edited description
Validation of required read-only field fails on request when the field is absent
Issue #207
resolved
Background:
Required read-only field is not mandatory in a request. Quoting the docs: https://swagger.io/docs/specification/data-models/data-types/
If a readOnly or writeOnly property is included in the required list, required affects just
the relevant scope – responses only or requests only. That is, read-only required
properties apply to responses only, and write-only required properties – to requests only.
The issue
Swagger validation fails with error key validation.request.body.schema.required
if a field is not provided in the request and its schema is configured as readOnly and required. This is incorrect behavior.
Comments (3)
-
reporter -
reporter - edited description
-
- changed status to resolved
Available in v2.4.6
- Log in to comment