Updated
Oct 11, 2021, 11:56:35 AM

{
    "$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": {
                "$ref": "#/definitions/measure",
                "type": "object"
            },
            "type": "array"
        },
        "version": {
            "type": "integer"
        },
        "version_ext": {
            "type": "string"
        }
    },
    "required": [
        "uuid",
        "label",
        "version",
        "values"
    ],
    "title": "Validator for referentials used in MONARC",
    "type": "object"
}