{ "anyOf": [ { "$ref": "roles#/definitions/admin" }, { "type": "object", "required": ["permission_certificates", "roles"], "properties": { "permission_certificates": { "$ref": "perms#/definitions/view" }, "roles": { "type": "array", "items": { "type": "string", "enum": ["user"] } } } } ] }