Skip to content

Commit

Permalink
fix: don't use integer for enums in json encoding (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
yon-mg committed Feb 3, 2021
1 parent aaabb27 commit 6d37a73
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -157,11 +157,13 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
{%- if method.http_opt['body'] != '*' %}
body = {{ method.input.fields[method.http_opt['body']].type.ident }}.to_json(
request.{{ method.http_opt['body'] }},
including_default_value_fields=False
including_default_value_fields=False,
use_integers_for_enums=False
)
{%- else %}
body = {{ method.input.ident }}.to_json(
request
request,
use_integers_for_enums=False
)
{%- endif %}
{%- endif %}
Expand Down

0 comments on commit 6d37a73

Please sign in to comment.