@@ -26,7 +26,7 @@ fn untagged_enum_with_empty_variant_before_one_of_hoisting() {
2626 ] ,
2727 "properties" : {
2828 "two" : {
29- "description" : "A very simple enum with empty variants" ,
29+ "description" : "A very simple enum with unit variants" ,
3030 "oneOf" : [
3131 {
3232 "type" : "string" ,
@@ -81,7 +81,7 @@ fn untagged_enum_with_empty_variant_before_one_of_hoisting() {
8181 "type" : "string"
8282 } ,
8383 "two" : {
84- "description" : "A very simple enum with empty variants" ,
84+ "description" : "A very simple enum with unit variants" ,
8585 "oneOf" : [
8686 {
8787 "type" : "string" ,
@@ -241,7 +241,7 @@ fn invalid_untagged_enum_with_conflicting_variant_fields_before_one_of_hosting()
241241 ] ,
242242 "properties" : {
243243 "two" : {
244- "description" : "A very simple enum with empty variants" ,
244+ "description" : "A very simple enum with unit variants" ,
245245 "oneOf" : [
246246 {
247247 "type" : "string" ,
@@ -315,7 +315,7 @@ fn invalid_untagged_enum_with_conflicting_variant_fields_after_one_of_hosting()
315315 ] ,
316316 "properties" : {
317317 "two" : {
318- "description" : "A very simple enum with empty variants" ,
318+ "description" : "A very simple enum with unit variants" ,
319319 "type" : "string" ,
320320 "enum" : [
321321 "C" ,
@@ -400,7 +400,7 @@ pub(crate) fn hoist_properties_for_any_of_subschemas(kube_schema: &mut SchemaObj
400400 // TODO (@NickLarsenNZ): Return errors instead of panicking, leave panicking up to the infallible schemars::Transform
401401
402402 let subschemas = subschemas
403- . into_iter ( )
403+ . iter_mut ( )
404404 . map ( |schema| match schema {
405405 Schema :: Object ( schema_object) => schema_object,
406406 Schema :: Bool ( _) => panic ! ( "oneOf and anyOf variants cannot be of type boolean" ) ,
0 commit comments