Skip to content

DED 0.2 schema

The JSON Schema of DED 0.2 (ded.schema.json) has 2 definitions. They are grouped here by the layers of Appendix A.2, each with its own description above its JSON. The file itself is published unchanged at /adp/ded/schema/0.1/ded.schema.json, the address of its $id, for validators and editors.

Not listed in Appendix A.2

Definition

Layer: not listed in Appendix A.2 · Described in: Cover of DED 0.2, 6. The schema

One document a user created of a designer type (DED section 3).

{
  "type": "object",
  "properties": {
    "ded": {
      "description": "The version of DED the definition is written in (DED section 2).",
      "enum": [
        "0.1",
        "0.2"
      ]
    },
    "designer": {
      "description": "The origin of the designer type the definition was made with, `<vendor>/<type>` (DESL section 3.2).",
      "$ref": "#/$defs/Origin"
    }
  },
  "required": [
    "ded",
    "designer"
  ]
}

Origin

Layer: not listed in Appendix A.2

{
  "type": "string",
  "pattern": "^[a-z0-9-]+/[a-z0-9-]+$"
}