Skip to content

Commit 3850a19

Browse files
committed
left a todo for empty structural variants in untagged enums
1 parent 35034c5 commit 3850a19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kube-core/src/schema.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ impl Transform for StructuralSchemaRewriter {
551551
None => return,
552552
};
553553
let schema = hoist_one_of_enum(schema);
554-
let mut schema = hoist_any_of_option_enum(schema);
554+
let schema = hoist_any_of_option_enum(schema);
555+
// todo: let schema = strip_any_of_empty_object_entry(schema);
556+
let mut schema = schema;
555557
if let Some(subschemas) = &mut schema.subschemas {
556558
if let Some(one_of) = subschemas.one_of.as_mut() {
557559
// Tagged enums are serialized using `one_of`

0 commit comments

Comments
 (0)