Skip to content

Support for reference-as-a-set #42

@blelump

Description

@blelump

Problem overview

Thinking of a data model where a reference in an object can be any of or one of the values in the set that defines the finite options is quite a common problem. Let's just consider a vehicle that can be a car, bicycle or truck. We then have { car, bicycle, truck } values in a set.

Constraining to a set of values for an attribute of type Reference is currently not supported. What's the DSWG view on this topic?

It is worth noting JSON Schema comes with a composition model that already proposes usage any of or one of concepts. Yet, it has a broader meaning because it also enables the composition of schemas out of subschemas. What's the DSWG view also on this topic?

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