Skip to content

Verbiage for type could be improved. #1080

Closed
@gregsdennis

Description

@gregsdennis

Core Section 6.1.1

An instance validates if and only if the instance is in any of the sets listed for this keyword.

Here a "set" is intended to be a collection, indicating that the value should be contained within that collection. However "in any of the sets" seems to imply there are multiple collections.

I think that the intent here was to say that the instance is valid if it is a subset of the set of allowable values (which are defined in the preceding sentence), but it still reads weird.

I suggest

An instance validates successfully if one of the following is true

  • it is a single value from the set above
  • it is an array of distinct values from the array above

This is a bit more verbose but significantly clearer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions