Updated
Apr 9, 2020, 12:50:38 PM

{
    "$id": "https://objects.monarc.lu/schema/def/590a6cc3-4bf9-4fe4-880f-c50530a990b9",
    "$schema": "http://json-schema.org/schema#",
    "additionalProperties": false,
    "definitions": {
        "asset": {
            "$ref": "https://objects.monarc.lu/schema/def/76315a94-50a4-4358-a844-f5eae7e7e141"
        },
        "measure": {
            "$ref": "https://objects.monarc.lu/schema/def/3777ff96-2d37-4ad2-8789-7aa3417b6312"
        },
        "object": {
            "properties": {
                "asset": {
                    "$ref": "#/definitions/asset",
                    "type": "object"
                },
                "children": {
                    "default": [],
                    "items": {
                        "$ref": "#/definitions/object"
                    },
                    "type": "array"
                },
                "description": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "measures": {
                    "items": {
                        "$ref": "#/definitions/measure",
                        "type": "object"
                    },
                    "type": "array",
                    "uniqueItems": true
                },
                "threat": {
                    "$ref": "#/definitions/threat",
                    "type": "object"
                },
                "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": "integer"
                },
                "vulnerability": {
                    "$ref": "#/definitions/vulnerability",
                    "type": "object"
                }
            },
            "required": [
                "uuid",
                "label",
                "description",
                "asset",
                "threat",
                "vulnerability",
                "version",
                "children"
            ],
            "type": "object"
        },
        "threat": {
            "$ref": "https://objects.monarc.lu/schema/def/9b9e44b1-a943-4f95-b0c3-df1015063a10"
        },
        "vulnerability": {
            "$ref": "https://objects.monarc.lu/schema/def/023efe2b-5f7f-43c0-b858-97877b5a1f75"
        }
    },
    "properties": {
        "object": {
            "$ref": "#/definitions/object"
        }
    },
    "required": [
        "object"
    ],
    "title": "Validator for objects used in MONARC",
    "type": "object"
}