one-data-model / language

(Old repo:) Simple Definition Format (SDF) for One Data Model definitions
7 stars 4 forks source link

create "odmRef" #83

Closed mjkoster closed 4 years ago

mjkoster commented 4 years ago

We resolved to create another ODM reserved word, odmRef

e.g.

{
  "odmProperty" : {
    "rChannel": { "odmRef": "#/odmData/colorChannelData" },
    "gChannel": { "odmRef": "#/odmData/colorChannelData" },
    "bChannel": { "odmRef": "#/odmData/colorChannelData" }
  },
  "odmData": {
    "colorChannelData": {
      "type": "number",
      "minumum": 0,
      "maximum": 256
    }
  }
}

We should be able to remove "odmType" because odmRef can be defined to carry the semantic breadcrumb from its references definition

mjkoster commented 4 years ago

when odmRef is used, the qualities of the referenced definition are included in the current declaration Additional qualities may be defined to customize the current declaration beyond the referenced definition

mjkoster commented 4 years ago

resolved with https://github.com/one-data-model/language/pull/87 https://github.com/one-data-model/language/pull/88