{
  "$id": "https://schemas.opendd.eu/xtddimension.1.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "xtd Dimension Schema",
  "description": "According to SS-EN ISO 12006-3:2022",
  "allOf": [
    {
      "$ref": "/xtdroot.1.schema.json"
    },
    {
      "$ref": "/xtdobject.1.schema.json"
    },
    {
      "$ref": "/xtdconcept.1.schema.json"
    },
    {
      "$ref": "#/$defs/Dimension"
    }
  ],
  "$defs": {
    "Dimension": {
      "type": "object",
      "properties": {
        "InstanceOf": {
          "type": "string",
          "const": "https://schemas.opendd.eu/xtddimension.1.schema.json"
        },
        "LengthExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "MassExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "TimeExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "ElectricCurrentExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "ThermodynamicTemperatureExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "AmountOfSubstanceExponent": {
          "$ref": "/xtdrational.1.schema.json"
        },
        "LuminousIntensityExponent": {
          "$ref": "/xtdrational.1.schema.json"
        }
      },
      "required": [
        "LengthExponent",
        "MassExponent",
        "TimeExponent",
        "ElectricCurrentExponent",
        "ThermodynamicTemperatureExponent",
        "AmountOfSubstanceExponent",
        "LuminousIntensityExponent"
      ]
    }
  }
}
