{
  "$id": "https://schemas.opendd.eu/opendd-data-sheet.1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Data sheet",
  "type": "object",
  "$comment": "This is implementation specific addition to the standard and it is not part of the 12006-3 standard",
  "allOf": [
    {
      "$ref": "/xtdroot.1.schema.json"
    },
    {
      "$ref": "/opendd-entity-meta.1.schema.json"
    },
    {
      "$ref": "/xtdobject.1.schema.json"
    },
    {
      "$ref": "#/$defs/DataSheet"
    }
  ],
  "$defs": {
    "DataSheet": {
      "type": "object",
      "properties": {
        "DataTemplate": {
          "oneOf": [
            {
              "$ref": "/xtdsubject.1.schema.json"
            },
            {
              "$ref": "/opendd-entityref.1.schema.json"
            }
          ]
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "Property": {
                "oneOf": [
                  {
                    "$ref": "/xtdproperty.1.schema.json"
                  },
                  {
                    "$ref": "/opendd-entityref.1.schema.json"
                  }
                ]
              },
              "Value": {
                "oneOf": [
                  {
                    "$ref": "/xtdvalue.1.schema.json"
                  },
                  {
                    "$ref": "/opendd-entityref.1.schema.json"
                  }
                ]
              }
            },
            "required": [
              "Property",
              "Value"
            ]
          }
        }
      },
      "required": [
        "DataTemplate",
        "Values"
      ]
    }
  },
  "unevaluatedProperties": false
}
