mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-19 03:06:43 +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)> {
|
pub fn lookup(&self, key: &str) -> Option<(bool, &Schema)> {
|
||||||
for entry in self.list {
|
for entry in self.list {
|
||||||
match entry {
|
match entry {
|
||||||
|
Schema::AllOf(s) => {
|
||||||
|
if let Some(v) = s.lookup(key) {
|
||||||
|
return Some(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
Schema::Object(s) => {
|
Schema::Object(s) => {
|
||||||
if let Some(v) = s.lookup(key) {
|
if let Some(v) = s.lookup(key) {
|
||||||
return Some(v);
|
return Some(v);
|
||||||
|
Loading…
Reference in New Issue
Block a user