one-data-model / language

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

Define enum items as URIs #103

Open mjkoster opened 4 years ago

mjkoster commented 4 years ago

Enum items should be URIs that enable description, protocol binding formats, and localization of terms. Make some examples and have a discussion.

mjkoster commented 4 years ago

Suggested design example:

      "odmData": {
        "DirectionData": {
          "odmEnum": {
            "Up": {
              "type": "number",
              "widthInBits": 8,
              "const": 0
            },
            "Down": {
              "type": "number",
              "widthInBits": 8,
              "const": 1
            }
          }
        }
      }