There should be a new attribute x-go-json-string: true attribute that makes the code generator output a json:"field_name,string" tag instead of json:"field_name".
This is particularly useful for ID types without having to implement UnmarshalJSON() and MarshalJSON() methods.
There should be a new attribute
x-go-json-string: true
attribute that makes the code generator output ajson:"field_name,string"
tag instead ofjson:"field_name"
.This is particularly useful for ID types without having to implement
UnmarshalJSON()
andMarshalJSON()
methods.