Skip to content

Do we allow minItems:0 as an interim solution #520

@edeutsch

Description

@edeutsch

The proposal is to switch how we say that the we have no attributes:

TRAPI 1.6 required empty array as the only way with minItems:0
ONLY: attributes: []

  1. The proposal is to require a null value, and the array MUST NOT be empty: minItems:1
    OK: attributes: null
    OK: (absent)

  2. A third compromise is to allow a transition grace period where no attributes may be expressed as the empty list from before OR the null value. We encourage everyone to move to null.
    OK: attributes: null
    OK: (absent)
    OK: attributes: []
    In TRAPI 2.1 we MAY fully switch to minItems:1

Vote for 1: tada

Vote for 2: rocket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions