Skip to content

Should "readOnly" (and "writeOnly") be an array like "required"? #364

Closed
@handrews

Description

@handrews

In the discussions for "deprecated", @awwright brought up that rather than make it a boolean in subschemas, it probably makes more sense to follow the pattern of "required" and make it an array or object alongside of "properties". Similar to #117 ("patternRequired") we would need an analogous "patternReadOnly" (and "additionalReadOnly"?)

Despite the likely need to add separate pattern/additional support, it feels like we should have a consistent design pattern of either specifying these things at the object level, or at the subschema level. Having worked with object level "required" for several years, I feel that it is the better approach.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions