@@ -170,7 +170,7 @@ type payloadShape struct {
170170
171171func (s * payloadShape ) MarshalFields (e protocol.FieldEncoder ) error {
172172 if s .Value != nil {
173- e .SetValue (protocol .BodyTarget , "value" , protocol.QuotedValue {protocol .StringValue (* s .Value )}, protocol.Metadata {})
173+ e .SetValue (protocol .BodyTarget , "value" , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* s .Value )}, protocol.Metadata {})
174174 }
175175 if s .IntVal != nil {
176176 e .SetValue (protocol .BodyTarget , "intval" , protocol .Int64Value (* s .IntVal ), protocol.Metadata {})
@@ -187,7 +187,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
187187 me := e .Map (protocol .BodyTarget , "mapstr" , protocol.Metadata {})
188188 me .Start ()
189189 for k , v := range s .MapStr {
190- me .MapSetValue (k , protocol.QuotedValue {protocol .StringValue (* v )})
190+ me .MapSetValue (k , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
191191 }
192192 me .End ()
193193 }
@@ -197,7 +197,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
197197 })
198198 me .Start ()
199199 for k , v := range s .MapFlatten {
200- me .MapSetValue (k , protocol.QuotedValue {protocol .StringValue (* v )})
200+ me .MapSetValue (k , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
201201 }
202202 me .End ()
203203 }
@@ -207,7 +207,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
207207 })
208208 me .Start ()
209209 for k , v := range s .MapNamed {
210- me .MapSetValue (k , protocol.QuotedValue {protocol .StringValue (* v )})
210+ me .MapSetValue (k , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
211211 }
212212 me .End ()
213213 }
@@ -243,7 +243,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
243243 le := e .List (protocol .BodyTarget , "liststr" , protocol.Metadata {})
244244 le .Start ()
245245 for _ , v := range s .ListStr {
246- le .ListAddValue (protocol.QuotedValue {protocol .StringValue (* v )})
246+ le .ListAddValue (protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
247247 }
248248 le .End ()
249249 }
@@ -253,7 +253,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
253253 })
254254 le .Start ()
255255 for _ , v := range s .ListFlatten {
256- le .ListAddValue (protocol.QuotedValue {protocol .StringValue (* v )})
256+ le .ListAddValue (protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
257257 }
258258 le .End ()
259259 }
@@ -263,7 +263,7 @@ func (s *payloadShape) MarshalFields(e protocol.FieldEncoder) error {
263263 })
264264 le .Start ()
265265 for _ , v := range s .ListNamed {
266- le .ListAddValue (protocol.QuotedValue {protocol .StringValue (* v )})
266+ le .ListAddValue (protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* v )})
267267 }
268268 le .End ()
269269 }
@@ -306,13 +306,13 @@ type nestedShape struct {
306306
307307func (s * nestedShape ) MarshalFields (e protocol.FieldEncoder ) error {
308308 if s .Value != nil {
309- e .SetValue (protocol .BodyTarget , "value" , protocol.QuotedValue {protocol .StringValue (* s .Value )}, protocol.Metadata {})
309+ e .SetValue (protocol .BodyTarget , "value" , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* s .Value )}, protocol.Metadata {})
310310 }
311311 if s .IntVal != nil {
312312 e .SetValue (protocol .BodyTarget , "intval" , protocol .Int64Value (* s .IntVal ), protocol.Metadata {})
313313 }
314314 if s .Prefixed != nil {
315- e .SetValue (protocol .BodyTarget , "prefixed" , protocol.QuotedValue {protocol .StringValue (* s .Prefixed )}, protocol.Metadata {})
315+ e .SetValue (protocol .BodyTarget , "prefixed" , protocol.QuotedValue {ValueMarshaler : protocol .StringValue (* s .Prefixed )}, protocol.Metadata {})
316316 }
317317 return nil
318318}
0 commit comments