verify-api: support nested AllOf schemas

This commit is contained in:
Dietmar Maurer 2021-02-25 13:44:17 +01:00
parent 05228f17f5
commit 917230e4f8
1 changed files with 1 additions and 0 deletions

View File

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