{
  "$id": "https://schemas.opendd.eu/xtdinterval.1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "xtd Interval Schema",
  "description": "According to SS-EN ISO 12006-3:2022",
  "type": "object",
  "allOf": [
    {
      "$ref": "/xtdroot.1.schema.json"
    },
    {
      "$ref": "#/$defs/Interval"
    }
  ],
  "$defs": {
    "Interval": {
      "type": "object",
      "properties": {
        "Minimum": {
          "description": "Lower value in the interval.",
          "$ref": "/xtdvaluelist.1.schema.json"
        },
        "MinimumIncluded": {
          "description": "Defines if the interval is opened or closed for the minimum value.",
          "type": "boolean"
        },
        "Maximum": {
          "description": "Higher value in the interval.",
          "$ref": "/xtdvaluelist.1.schema.json"
        },
        "MaximumIncluded": {
          "description": "Defines if the interval is opened or closed for the maximum value.",
          "type": "boolean"
        }
      },
      "required": [
        "MinimumIncluded",
        "MaximumIncluded"
      ]
    },
    "xtdDataTypeEnum": {
      "title": "Data type enumeration",
      "description": "xtdDataTypeEnum is an enumeration type giving the range of possible simple data types from which a selection can be made",
      "type": "string",
      "enum": [
        "XTD_BOOLEAN",
        "XTD_INTEGER",
        "XTD_RATIONAL",
        "XTD_REAL",
        "XTD_COMPLEX",
        "XTD_STRING",
        "XTD_DATETIME"
      ]
    }
  },
  "unevaluatedProperties": false
}
