Updated
Oct 11, 2021, 12:02:08 PM

{
    "$id": "https://objects.monarc.lu/schema/def/308deb4c-0249-43ed-9f6f-f5c60b630d8f",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "definitions": {
        "measure": {
            "$ref": "https://objects.monarc.lu/schema/def/3777ff96-2d37-4ad2-8789-7aa3417b6312"
        }
    },
    "properties": {
        "authors": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "label": {
            "type": "string"
        },
        "language": {
            "default": "EN",
            "oneOf": [
                {
                    "pattern": "^[A-Z]{2}$",
                    "type": "string"
                }
            ],
            "type": "string"
        },
        "refs": {
            "items": {
                "type": "string"
            },
            "minItems": 1
        },
        "uuid": {
            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
            "type": "string"
        },
        "values": {
            "items": {
                "$comment": "UUID of a measure.",
                "description": "UUID of a measure.",
                "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
                "type": "string"
            },
            "type": "array"
        },
        "version": {
            "type": "integer"
        },
        "version_ext": {
            "type": "string"
        }
    },
    "required": [
        "uuid",
        "label",
        "version",
        "values"
    ],
    "title": "Validator for referentials used in MONARC",
    "type": "object"
}