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 c2fbe70 commit 8abef36Copy full SHA for 8abef36
kube-core/src/schema.rs
@@ -497,7 +497,6 @@ fn hoist_any_of_option_enum(incoming: SchemaObject) -> SchemaObject {
497
let null = json!({
498
"enum": [null],
499
"nullable": true
500
-
501
});
502
503
// iter through any_of for matching null
@@ -692,6 +691,17 @@ fn hoist_subschema_properties(
692
691
variant_obj.additional_properties = None;
693
694
merge_metadata(instance_type, variant_type.take());
+ } else if let Schema::Object(SchemaObject {
695
+ object: None,
696
+ instance_type: variant_type,
697
+ metadata,
698
+ ..
699
+ }) = variant
700
+ {
701
+ if *variant_type == Some(SingleOrVec::Single(Box::new(InstanceType::Object))) {
702
+ *variant_type = None;
703
+ *metadata = None;
704
+ }
705
}
706
707
0 commit comments