Remove usage of json.RawMessage via go-runtime/encoding
package
#1439
Labels
good first issue
Good for newcomers
go-runtime/encoding
package
#1439
json.RawMessage
is not a type that FTL supports. The only standard lib type we currently support istime.Time
.However, currently, ingress requests and responses have
json.RawMessage
fields in their structs. They are configured using thejson
struct tag to be omitted from the output JSON when undefined.Now that we have support for omitempty (#1262), we no longer need to type these fields as
json.RawMessage
. They are encoded as[]byte
underlying, but byte arrays are serialized to base64 strings by our custom encoder, rather than a human readable value.I haven't explored this fully to prove this works, but a reasonable option could be to convert the
json.RawMessage
fields tostring
, which would be human-readable.Make sure to remove the special case for
json.RawMessage
in go-runtime/encoding/encoding.go as a part of this: linkThe text was updated successfully, but these errors were encountered: