Updated
Apr 14, 2020, 8:41:57 AM

{
    "$id": "https://objects.monarc.lu/schema/def/83bd1a3f-d36b-4225-aa96-7da07a8b7b38",
    "$schema": "http://json-schema.org/schema#",
    "additionalProperties": false,
    "definitions": {
        "measure": {
            "$ref": "https://objects.monarc.lu/schema/def/3777ff96-2d37-4ad2-8789-7aa3417b6312"
        },
        "measure-mapping": {
            "$ref": "https://objects.monarc.lu/schema/def/24d133a5-fab5-4be6-b455-55068cee7a28"
        },
        "referential": {
            "$ref": "https://objects.monarc.lu/schema/def/308deb4c-0249-43ed-9f6f-f5c60b630d8f"
        }
    },
    "properties": {
        "authors": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "label": {
            "type": "string"
        },
        "language": {
            "default": "EN",
            "oneOf": [
                {
                    "pattern": "^[A-Z]{2}$",
                    "type": "string"
                }
            ],
            "type": "string"
        },
        "measures": {
            "items": {
                "$ref": "#/definitions/measure",
                "type": "object"
            },
            "type": "array"
        },
        "measures-mapping": {
            "items": {
                "$ref": "#/definitions/measure-mapping",
                "type": "object"
            },
            "type": "array"
        },
        "referentials": {
            "items": {
                "$ref": "#/definitions/referential",
                "type": "object"
            },
            "type": "array"
        }
    },
    "required": [
        "label",
        "language",
        "version"
    ],
    "title": "Validator for models (anr) used in MONARC",
    "type": "object"
}