module:"openapi-transformers/read-only-not-required.js"()
Transformer to ensure readOnly schema properties are not required, to work
around lack of support in generators.
The behavior of required readOnly/writeOnly properties is defined in OAS3
(the requirement only applies on response/request), but not in OAS2 (where
writeOnly is not defined and "Properties marked as readOnly being true
SHOULD NOT be in the required list").
AutoRest Behavior:
- required properties must be specified in the constructor.
- required properties are non-nullable (unless x-nullable: true).
- non-required properties are nullable (unless x-nullable: false).
- validation is applied to non-null values in requests, not responses.
Constructor
new module:"openapi-transformers/read-only-not-required.js"()
- Source: