Updated
Feb 12, 2019, 1:47:53 PM

{
    "$schema": "http://json-schema.org/schema#",
    "additionalProperties": false,
    "properties": {
        "authors": {
            "items": {
                "type": "string"
            },
            "type": "array",
            "uniqueItems": true
        },
        "label": {
            "type": "string"
        },
        "measures": {
            "items": {
                "properties": {
                    "category": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "label": {
                        "type": "string"
                    },
                    "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",
                "label",
                "category",
                "code"
            ],
            "type": "array",
            "uniqueItems": true
        },
        "uuid": {
            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
            "type": "string"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "uuid",
        "label",
        "version",
        "measures"
    ],
    "title": "Validator for referentials used in MONARC",
    "type": "object"
}