{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "resource_id": {
        "type": "string"
    },
    "resource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
            "priority": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
            }
        }
    },
    "verbs": {
        "create": {
            "required": [
                "priority"
            ]
        },
        "update": {
            "required": [
                "priority"
            ]
        }
    },
    "properties": {
        "resource_id": {
            "$ref": "#/resource_id"
        },
        "resource": {
            "$ref": "#/resource"
        }
    },
    "required": [
        "resource_id",
        "resource"
    ]
}