{ "anyOf": [ { "$ref": "roles#/definitions/admin" }, { "type": "object", "required": ["data", "scope"], "properties": { "data": { "$ref": "objects#/properties/users" }, "scope": { "type": "array", "contains": { "type": "string", "pattern": "^user$" } } } } ] }