@@ -473,7 +473,7 @@ func TestOneOfAnnotations(t *testing.T) {
473
473
BranchName : "OneofFieldMap" ,
474
474
FQMessageName : "crate::model::Message" ,
475
475
DocLines : nil ,
476
- Attributes : []string {`#[serde_as(as = "std::collections::HashMap<_ , wkt::internal::F32>")]` },
476
+ Attributes : []string {`#[serde_as(as = "std::collections::HashMap<wkt::internal::I32 , wkt::internal::F32>")]` },
477
477
FieldType : "std::collections::HashMap<i32,f32>" ,
478
478
PrimitiveFieldType : "std::collections::HashMap<i32,f32>" ,
479
479
AddQueryParameter : `let builder = req.oneof_field_map().map(|p| serde_json::to_value(p).map_err(Error::serde) ).transpose()?.into_iter().fold(builder, |builder, p| { use gaxi::query_parameter::QueryParameter; p.add(builder, "oneofFieldMap") });` ,
@@ -818,6 +818,7 @@ func TestJsonNameAnnotations(t *testing.T) {
818
818
DocLines : nil ,
819
819
Attributes : []string {
820
820
`#[serde(skip_serializing_if = "wkt::internal::is_default")]` ,
821
+ `#[serde_as(as = "wkt::internal::I32")]` ,
821
822
},
822
823
FieldType : "i32" ,
823
824
PrimitiveFieldType : "i32" ,
@@ -836,6 +837,7 @@ func TestJsonNameAnnotations(t *testing.T) {
836
837
DocLines : nil ,
837
838
Attributes : []string {
838
839
`#[serde(skip_serializing_if = "std::option::Option::is_none")]` ,
840
+ `#[serde_as(as = "std::option::Option<wkt::internal::I32>")]` ,
839
841
},
840
842
FieldType : "std::option::Option<i32>" ,
841
843
PrimitiveFieldType : "i32" ,
@@ -854,6 +856,7 @@ func TestJsonNameAnnotations(t *testing.T) {
854
856
DocLines : nil ,
855
857
Attributes : []string {
856
858
`#[serde(skip_serializing_if = "std::vec::Vec::is_empty")]` ,
859
+ `#[serde_as(as = "std::vec::Vec<wkt::internal::I32>")]` ,
857
860
},
858
861
FieldType : "std::vec::Vec<i32>" ,
859
862
PrimitiveFieldType : "i32" ,
@@ -1046,7 +1049,7 @@ func TestFieldAnnotations(t *testing.T) {
1046
1049
FQMessageName : "crate::model::TestMessage" ,
1047
1050
Attributes : []string {
1048
1051
`#[serde(skip_serializing_if = "std::collections::HashMap::is_empty")]` ,
1049
- `#[serde_as(as = "std::collections::HashMap<_ , serde_with::DisplayFromStr>")]` ,
1052
+ `#[serde_as(as = "std::collections::HashMap<wkt::internal::I32 , serde_with::DisplayFromStr>")]` ,
1050
1053
},
1051
1054
FieldType : "std::collections::HashMap<i32,i64>" ,
1052
1055
PrimitiveFieldType : "std::collections::HashMap<i32,i64>" ,
0 commit comments