{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://law.arxo.io/schema/concept-alignment-policy.schema.json",
  "type": "object",
  "properties": {
    "format": {
      "const": "arxo.concept-alignment.policy/0.1"
    },
    "profile": {
      "const": "qudt-wikidata-dimension/0.1"
    },
    "enabled": {
      "type": "boolean"
    },
    "package": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "namespace": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "name",
        "version",
        "namespace"
      ],
      "additionalProperties": false
    },
    "type_owner": {
      "type": "string",
      "minLength": 1
    },
    "projects": {
      "type": "object",
      "properties": {
        "wikidata": {
          "type": "string",
          "minLength": 1
        },
        "qudt": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "wikidata",
        "qudt"
      ],
      "additionalProperties": false
    },
    "allowed_qudt_types": {
      "type": "array",
      "items": {
        "enum": [
          "http://qudt.org/schema/qudt/Unit",
          "http://qudt.org/schema/qudt/QuantityKind"
        ]
      },
      "minItems": 1,
      "uniqueItems": true
    }
  },
  "required": [
    "format",
    "profile",
    "enabled",
    "package",
    "type_owner",
    "projects",
    "allowed_qudt_types"
  ],
  "additionalProperties": false
}
