GfSE / SpecIF-Schema

Definition of the SpecIF JSON-schema and constraint checker
Apache License 2.0
1 stars 0 forks source link

Property with link to value of enumerated dataType #4

Open odungern opened 2 years ago

odungern commented 2 years ago

In v1.1, a property with link to value of enumerated dataType looks like:

{
  "class": {"id":"PC-Priority"},
  "values": ["V-Prio-1"]
}

where "V-Prio-1"is the id of an enumerated value of the referenced dataType.

In order to be consistent with other internal links, it is proposed:

{
  "class": {"id":"PC-Priority"},
  "values": [{"id":"V-Prio-1"}]
}

Towards this end, the schema element SpecifValue needs an additional option.