remove json tag's string modifier

This commit is contained in:
Pavel Merzlyakov 2023-09-07 11:35:20 +03:00
parent 9dc5beeaf9
commit 6f4b082676
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
type {{ s.name }} struct {
{%~ for f in pkey %}
{{ f|fname }} {{ f.type|go_type }} `json:"{{ f|alias }},string" msgpack:"{{ f|alias }}"`
{{ f|fname }} {{ f.type|go_type }} `json:"{{ f|alias }}" msgpack:"{{ f|alias }}"`
{%~ endfor %}
{{ json_fields_type }}
@ -51,7 +51,7 @@ type {{ s.name }} struct {
type {{ json_fields_type }} struct{
{%~ for f in json_fields %}
{{ f|fname }} {{ f.type|go_type }} `json:"{{ f|alias }},string" msgpack:"{{ f|alias }}"`
{{ f|fname }} {{ f.type|go_type }} `json:"{{ f|alias }}" msgpack:"{{ f|alias }}"`
{%~ endfor %}
changedFields meta.ChangedFields
@ -882,7 +882,7 @@ type {{ s.name }} struct {
{% endif %}
{% for f in s.fields %}
{{ f|fname }} {{ f.type|go_type(f.tokens) }} `json:"{{ f|alias }},string" msgpack:"{{ f|alias }}"`
{{ f|fname }} {{ f.type|go_type(f.tokens) }} `json:"{{ f|alias }}" msgpack:"{{ f|alias }}"`
{% endfor %}
{% if has_token(s, 'bitfields') %}