Skip to content

hyper-schema: LDOs and anyOf/allOf/oneOf/not/dependencies #157

Closed
@handrews

Description

@handrews

I think it would be a good idea to clarify the use of LDOs with the combinatoric keywords. I think this is what should happen, but I'm not sure:

  • An LDO may only be used with an instance if the instance is valid against the schema in which the LDO appears.

    • LDOs from the valid branch of a "oneOf" can be used, but not any of the others
    • LDOs from each of the valid branches of an "anyOf" can be used
    • LDOs from a schema value in "dependencies" can only be used if the property key controlling that schema is present in an object instance
  • LDOs within a "not" cannot ever be used (I just can't figure out how using them would make any sense)

  • What happens if LDOs in "allOf" branches or in valid "anyOf" branches define links with the same "rel" values?

    • Could just mean multiple links are available
    • What if the resulting URIs are different? There is no way to tell which is intended, is there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions