verify-api: support nested AllOf schemas
This commit is contained in:
parent
05228f17f5
commit
917230e4f8
|
@ -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!"),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue