{
    "id": "https://opendesk.cc/schemata/base/reference.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Winnow Reference",
    "oneOf": [
        {
            "type": "string",
            "pattern": "^[$]ref[:](((/)|(https?://))[_0-9A-Za-z-]{1,}((/([_0-9A-Za-z-]){1,})*))*((#|~)((/([_0-9A-Za-z-]){1,})*)?)?$"
        },
        {
            "type": "object",
            "properties": {
                "$ref": {
                    "type": "string",
                    "pattern": "^(((/)|(https?://))[_0-9A-Za-z-]{1,}((/([_0-9A-Za-z-]){1,})*))*((#|~)((/([_0-9A-Za-z-]){1,})*)?)?$"
                },
                "options": {
                    "type": "object"
                },
                "override": {
                    "type": "boolean"
                },
                "scopes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            },
            "required": [
                "$ref"
            ],
            "additionalProperties": false
        }
    ]
}