]> git.proxmox.com Git - proxmox-backup.git/commitdiff
verify-api: support nested AllOf schemas
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Feb 2021 12:44:17 +0000 (13:44 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Feb 2021 12:44:17 +0000 (13:44 +0100)
tests/verify-api.rs

index 0d6b654b16ec17cdcab2a299eb28ff74bb09097d..e4b8ebec8cc18a1f72bc0707a2d595c34599c701 100644 (file)
@@ -39,6 +39,7 @@ fn verify_all_of_schema(schema: &AllOfSchema) -> Result<(), Error> {
     for entry in schema.list {
         match entry {
             Schema::Object(obj) => verify_object_schema(obj)?,
+            Schema::AllOf(allof) => verify_all_of_schema(allof)?,
             _ => bail!("AllOf schema with a non-object schema entry!"),
         }
     }