mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-18 16:22:40 +00:00
fix AllOfSchema::lookup to allow nesting
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
bd4f9a313b
commit
12a6846a03
@ -505,6 +505,11 @@ impl AllOfSchema {
|
||||
pub fn lookup(&self, key: &str) -> Option<(bool, &Schema)> {
|
||||
for entry in self.list {
|
||||
match entry {
|
||||
Schema::AllOf(s) => {
|
||||
if let Some(v) = s.lookup(key) {
|
||||
return Some(v);
|
||||
}
|
||||
}
|
||||
Schema::Object(s) => {
|
||||
if let Some(v) = s.lookup(key) {
|
||||
return Some(v);
|
||||
|
Loading…
Reference in New Issue
Block a user