{
  "$id": "https://schemas.opendd.eu/opendd-entity-meta.1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Entity metadata",
  "description": "This schemas makes it possible to include a metadata property to our entities.",
  "type": "object",
  "$comment": "This is an implementation specific addition to the standard and it is not part of the 12006-3 standard",
  "properties": {
    "InstanceOf": {
      "type": "string",
      "format": "uri",
      "description": "The schema URI of the schema, which is used to determine the type of the entity and how to process it."
    },
    "Metadata": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "comment": {
            "$ref": "/xtdmultilanguagetext.1.schema.json"
          }
        },
        "required": [
          "key",
          "value"
        ]
      }
    }
  }
}
