{
  "$id": "https://schemas.opendd.eu/xtdtext.1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "xtd Text Schema",
  "description": "xtdText is a text represented in a specific language.; According to SS-EN ISO 12006-3:2022.",
  "type": "object",
  "allOf": [
    {
      "$ref": "/xtdroot.1.schema.json"
    },
    {
      "$ref": "#/$defs/Text"
    }
  ],
  "$defs": {
    "Text": {
      "type": "object",
      "title": "Text",
      "description": "Is a text represented in a specific language.",
      "properties": {
        "Text": {
          "type": "string",
          "title": "Text",
          "description": "Text value expressed in the corresponding language.",
          "minLength": 1
        },
        "Language": {
          "description": "Language used for the text.",
          "oneOf": [
            {
              "$ref": "/xtdlanguage.1.schema.json"
            },
            {
              "$ref": "/opendd-entityref.1.schema.json"
            }
          ]
        }
      },
      "required": [
        "Text",
        "Language"
      ]
    }
  }
}
