@@ -425,8 +425,7 @@ A new extension is created in the openapi to describe the behavior:
425
425
` x-kubernetes-unions ` .
426
426
427
427
This is a list of unions that are part of this structure/object. Each item in
428
- the list represents a discriminator for the union, a list of valid discriminator
429
- unions that do not correspond to member fields, and for each member field,
428
+ the list represents a discriminator for the union, and for each member field,
430
429
the discriminator value of that field and whether or not that field is optional.
431
430
432
431
Conversion between OpenAPI v2 and OpenAPI v3 will preserve these fields.
@@ -491,11 +490,6 @@ OpenAPIDefinition{
491
490
"x-kubernetes-unions": []interface{}{
492
491
map[string]interface{}{
493
492
"discriminator": "Union1",
494
- "emptyMembers":[]string{
495
- "FieldC",
496
- "FieldD",
497
- "",
498
- },
499
493
"fields-to-discriminateBy": map[string]interface{}{
500
494
"FieldA": map[string]interface{}{
501
495
"discriminatorValue": "FieldA",
@@ -509,10 +503,6 @@ OpenAPIDefinition{
509
503
},
510
504
map[string]interface{}{
511
505
"discriminator": "Union2",
512
- "emptyMembers":[]string{
513
- "GAMMA",
514
- "NULL",
515
- },
516
506
"fields-to-discriminateBy": map[string]interface{}{
517
507
"Alpha": map[string]interface{}{
518
508
"discriminatorValue": "ALPHA",
0 commit comments