@@ -863,7 +863,7 @@ impl<'de> ::serde::Deserialize<'de> for Ipv6Net {
863
863
pub enum JankNames {
864
864
Variant0 ( :: std:: string:: String ) ,
865
865
Variant1 ( :: std:: collections:: HashMap < :: std:: string:: String , :: std:: string:: String > ) ,
866
- Variant2 ( :: std:: collections:: HashMap < :: std:: string:: String , i64 > ) ,
866
+ Object ( :: std:: collections:: HashMap < :: std:: string:: String , i64 > ) ,
867
867
}
868
868
impl :: std:: convert:: From < & Self > for JankNames {
869
869
fn from ( value : & JankNames ) -> Self {
@@ -881,7 +881,7 @@ impl ::std::convert::From<::std::collections::HashMap<::std::string::String, ::s
881
881
}
882
882
impl :: std:: convert:: From < :: std:: collections:: HashMap < :: std:: string:: String , i64 > > for JankNames {
883
883
fn from ( value : :: std:: collections:: HashMap < :: std:: string:: String , i64 > ) -> Self {
884
- Self :: Variant2 ( value)
884
+ Self :: Object ( value)
885
885
}
886
886
}
887
887
#[ doc = "`Never`" ]
@@ -1097,6 +1097,108 @@ impl ::std::convert::TryFrom<::std::string::String> for NullStringEnumWithUnknow
1097
1097
value. parse ( )
1098
1098
}
1099
1099
}
1100
+ #[ doc = "`OneOfMissingTitle`" ]
1101
+ #[ doc = r"" ]
1102
+ #[ doc = r" <details><summary>JSON schema</summary>" ]
1103
+ #[ doc = r"" ]
1104
+ #[ doc = r" ```json" ]
1105
+ #[ doc = "{" ]
1106
+ #[ doc = " \" type\" : \" object\" ," ]
1107
+ #[ doc = " \" oneOf\" : [" ]
1108
+ #[ doc = " {" ]
1109
+ #[ doc = " \" title\" : \" A\" ," ]
1110
+ #[ doc = " \" properties\" : {" ]
1111
+ #[ doc = " \" foo\" : {" ]
1112
+ #[ doc = " \" type\" : \" string\" " ]
1113
+ #[ doc = " }" ]
1114
+ #[ doc = " }" ]
1115
+ #[ doc = " }," ]
1116
+ #[ doc = " {" ]
1117
+ #[ doc = " \" title\" : \" B\" ," ]
1118
+ #[ doc = " \" properties\" : {" ]
1119
+ #[ doc = " \" bar\" : {" ]
1120
+ #[ doc = " \" type\" : \" integer\" " ]
1121
+ #[ doc = " }" ]
1122
+ #[ doc = " }" ]
1123
+ #[ doc = " }," ]
1124
+ #[ doc = " {" ]
1125
+ #[ doc = " \" properties\" : {" ]
1126
+ #[ doc = " \" bar\" : {" ]
1127
+ #[ doc = " \" type\" : \" integer\" " ]
1128
+ #[ doc = " }," ]
1129
+ #[ doc = " \" baz\" : {" ]
1130
+ #[ doc = " \" type\" : \" integer\" " ]
1131
+ #[ doc = " }" ]
1132
+ #[ doc = " }" ]
1133
+ #[ doc = " }" ]
1134
+ #[ doc = " ]" ]
1135
+ #[ doc = "}" ]
1136
+ #[ doc = r" ```" ]
1137
+ #[ doc = r" </details>" ]
1138
+ #[ derive( :: serde :: Deserialize , :: serde :: Serialize , Clone , Debug ) ]
1139
+ #[ serde( untagged) ]
1140
+ pub enum OneOfMissingTitle {
1141
+ A {
1142
+ #[ serde( default , skip_serializing_if = "::std::option::Option::is_none" ) ]
1143
+ foo : :: std:: option:: Option < :: std:: string:: String > ,
1144
+ } ,
1145
+ B {
1146
+ #[ serde( default , skip_serializing_if = "::std::option::Option::is_none" ) ]
1147
+ bar : :: std:: option:: Option < i64 > ,
1148
+ } ,
1149
+ Variant2 {
1150
+ #[ serde( default , skip_serializing_if = "::std::option::Option::is_none" ) ]
1151
+ bar : :: std:: option:: Option < i64 > ,
1152
+ #[ serde( default , skip_serializing_if = "::std::option::Option::is_none" ) ]
1153
+ baz : :: std:: option:: Option < i64 > ,
1154
+ } ,
1155
+ }
1156
+ impl :: std:: convert:: From < & Self > for OneOfMissingTitle {
1157
+ fn from ( value : & OneOfMissingTitle ) -> Self {
1158
+ value. clone ( )
1159
+ }
1160
+ }
1161
+ #[ doc = "`OneOfRawType`" ]
1162
+ #[ doc = r"" ]
1163
+ #[ doc = r" <details><summary>JSON schema</summary>" ]
1164
+ #[ doc = r"" ]
1165
+ #[ doc = r" ```json" ]
1166
+ #[ doc = "{" ]
1167
+ #[ doc = " \" oneOf\" : [" ]
1168
+ #[ doc = " {" ]
1169
+ #[ doc = " \" type\" : \" string\" " ]
1170
+ #[ doc = " }," ]
1171
+ #[ doc = " {" ]
1172
+ #[ doc = " \" type\" : \" integer\" " ]
1173
+ #[ doc = " }" ]
1174
+ #[ doc = " ]" ]
1175
+ #[ doc = "}" ]
1176
+ #[ doc = r" ```" ]
1177
+ #[ doc = r" </details>" ]
1178
+ #[ derive( :: serde :: Deserialize , :: serde :: Serialize , Clone , Debug ) ]
1179
+ #[ serde( untagged) ]
1180
+ pub enum OneOfRawType {
1181
+ String ( :: std:: string:: String ) ,
1182
+ Integer ( i64 ) ,
1183
+ }
1184
+ impl :: std:: convert:: From < & Self > for OneOfRawType {
1185
+ fn from ( value : & OneOfRawType ) -> Self {
1186
+ value. clone ( )
1187
+ }
1188
+ }
1189
+ impl :: std:: fmt:: Display for OneOfRawType {
1190
+ fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1191
+ match self {
1192
+ Self :: String ( x) => x. fmt ( f) ,
1193
+ Self :: Integer ( x) => x. fmt ( f) ,
1194
+ }
1195
+ }
1196
+ }
1197
+ impl :: std:: convert:: From < i64 > for OneOfRawType {
1198
+ fn from ( value : i64 ) -> Self {
1199
+ Self :: Integer ( value)
1200
+ }
1201
+ }
1100
1202
#[ doc = "`OneOfTypes`" ]
1101
1203
#[ doc = r"" ]
1102
1204
#[ doc = r" <details><summary>JSON schema</summary>" ]
@@ -1486,8 +1588,8 @@ impl ::std::fmt::Display for ReferenceDef {
1486
1588
#[ derive( :: serde :: Deserialize , :: serde :: Serialize , Clone , Debug ) ]
1487
1589
#[ serde( untagged) ]
1488
1590
pub enum References {
1489
- Variant0 ( :: std:: vec:: Vec < :: std:: string:: String > ) ,
1490
- Variant1 ( :: std:: collections:: HashMap < :: std:: string:: String , ReferencesVariant1Value > ) ,
1591
+ Array ( :: std:: vec:: Vec < :: std:: string:: String > ) ,
1592
+ Object ( :: std:: collections:: HashMap < :: std:: string:: String , ReferencesObjectValue > ) ,
1491
1593
}
1492
1594
impl :: std:: convert:: From < & Self > for References {
1493
1595
fn from ( value : & References ) -> Self {
@@ -1496,21 +1598,19 @@ impl ::std::convert::From<&Self> for References {
1496
1598
}
1497
1599
impl :: std:: convert:: From < :: std:: vec:: Vec < :: std:: string:: String > > for References {
1498
1600
fn from ( value : :: std:: vec:: Vec < :: std:: string:: String > ) -> Self {
1499
- Self :: Variant0 ( value)
1601
+ Self :: Array ( value)
1500
1602
}
1501
1603
}
1502
- impl
1503
- :: std:: convert:: From <
1504
- :: std:: collections:: HashMap < :: std:: string:: String , ReferencesVariant1Value > ,
1505
- > for References
1604
+ impl :: std:: convert:: From < :: std:: collections:: HashMap < :: std:: string:: String , ReferencesObjectValue > >
1605
+ for References
1506
1606
{
1507
1607
fn from (
1508
- value : :: std:: collections:: HashMap < :: std:: string:: String , ReferencesVariant1Value > ,
1608
+ value : :: std:: collections:: HashMap < :: std:: string:: String , ReferencesObjectValue > ,
1509
1609
) -> Self {
1510
- Self :: Variant1 ( value)
1610
+ Self :: Object ( value)
1511
1611
}
1512
1612
}
1513
- #[ doc = "`ReferencesVariant1Value `" ]
1613
+ #[ doc = "`ReferencesObjectValue `" ]
1514
1614
#[ doc = r"" ]
1515
1615
#[ doc = r" <details><summary>JSON schema</summary>" ]
1516
1616
#[ doc = r"" ]
@@ -1529,29 +1629,29 @@ impl
1529
1629
#[ doc = r" </details>" ]
1530
1630
#[ derive( :: serde :: Deserialize , :: serde :: Serialize , Clone , Debug ) ]
1531
1631
#[ serde( untagged) ]
1532
- pub enum ReferencesVariant1Value {
1632
+ pub enum ReferencesObjectValue {
1533
1633
StringVersion ( StringVersion ) ,
1534
1634
ReferenceDef ( ReferenceDef ) ,
1535
1635
}
1536
- impl :: std:: convert:: From < & Self > for ReferencesVariant1Value {
1537
- fn from ( value : & ReferencesVariant1Value ) -> Self {
1636
+ impl :: std:: convert:: From < & Self > for ReferencesObjectValue {
1637
+ fn from ( value : & ReferencesObjectValue ) -> Self {
1538
1638
value. clone ( )
1539
1639
}
1540
1640
}
1541
- impl :: std:: fmt:: Display for ReferencesVariant1Value {
1641
+ impl :: std:: fmt:: Display for ReferencesObjectValue {
1542
1642
fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
1543
1643
match self {
1544
1644
Self :: StringVersion ( x) => x. fmt ( f) ,
1545
1645
Self :: ReferenceDef ( x) => x. fmt ( f) ,
1546
1646
}
1547
1647
}
1548
1648
}
1549
- impl :: std:: convert:: From < StringVersion > for ReferencesVariant1Value {
1649
+ impl :: std:: convert:: From < StringVersion > for ReferencesObjectValue {
1550
1650
fn from ( value : StringVersion ) -> Self {
1551
1651
Self :: StringVersion ( value)
1552
1652
}
1553
1653
}
1554
- impl :: std:: convert:: From < ReferenceDef > for ReferencesVariant1Value {
1654
+ impl :: std:: convert:: From < ReferenceDef > for ReferencesObjectValue {
1555
1655
fn from ( value : ReferenceDef ) -> Self {
1556
1656
Self :: ReferenceDef ( value)
1557
1657
}
0 commit comments