Updated
Oct 11, 2021, 12:01:29 PM

{
    "$id": "https://objects.monarc.lu/schema/def/ac048422-2bd2-40c0-8447-41a607639f3a",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "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,
            "type": "array"
        },
        "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": {
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "importance": {
                        "maximum": 3,
                        "minimum": 0,
                        "type": "integer"
                    },
                    "uuid": {
                        "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
                        "type": "string"
                    }
                },
                "type": "object"
            },
            "required": [
                "uuid",
                "code",
                "description"
            ],
            "type": "array",
            "uniqueItems": true
        },
        "version": {
            "type": "number"
        }
    },
    "required": [
        "uuid",
        "label",
        "version",
        "values"
    ],
    "title": "Validator for recommendations sets used in MONARC",
    "type": "object"
}