We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e91665b commit f13a751Copy full SHA for f13a751
kube-core/src/schema.rs
@@ -562,8 +562,12 @@ fn hoist_any_of_option_enum(incoming: SchemaObject) -> SchemaObject {
562
.any_of
563
.clone();
564
// Bring across the properties, etc...
565
- // Is this ok?
566
- new_schema.object = to_hoist.object.clone();
+ // Is this ok? Or should we just replace properties with sub properties?
+ // Or should we carefully copy the property entries over in case there are existing entries?
567
+ // new_schema.object = to_hoist.object.clone();
568
+ if let Some(to_hoist_object) = &to_hoist.object {
569
+ new_schema.object.get_or_insert_default().properties = to_hoist_object.properties.clone();
570
+ }
571
} else if to_hoist
572
.subschemas
573
.as_ref()
0 commit comments