Updated
May 3, 2019, 7:59:36 AM

{
    "$id": "http://example.com/root.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "defs": {
        "non-empty-string": {
            "minLength": 1,
            "type": "string"
        }
    },
    "properties": {
        "label": {
            "default": "",
            "examples": [
                "ISO / NIST"
            ],
            "pattern": "^(.*)$",
            "title": "The Label Schema",
            "type": "string"
        },
        "measures": {
            "$id": "#/properties/measures",
            "items": {
                "$id": "#/properties/measures/items",
                "properties": {
                    "control": {
                        "$id": "#/properties/measures/items/properties/control",
                        "default": "",
                        "examples": [
                            "UUID1"
                        ],
                        "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
                        "title": "The Control-uuid Schema",
                        "type": "string"
                    },
                    "match": {
                        "$id": "#/properties/measures/items/properties/match",
                        "default": "",
                        "examples": [
                            "UUID2"
                        ],
                        "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
                        "title": "The Match-uuid Schema",
                        "type": "string"
                    }
                },
                "required": [
                    "control",
                    "match"
                ],
                "title": "The Items Schema",
                "type": "object"
            },
            "title": "The Mapping Schema",
            "type": "array"
        },
        "refs": {
            "items": {
                "$ref": "#/defs/non-empty-string"
            },
            "minItems": 1,
            "type": "array",
            "uniqueItems": true
        }
    },
    "required": [
        "label",
        "measures"
    ],
    "title": "The Root Schema",
    "type": "object"
}