Skip to content

Commit

Permalink
return err
Browse files Browse the repository at this point in the history
  • Loading branch information
skarimo committed Apr 17, 2023
1 parent deab75e commit badd45c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .generator/src/generator/templates/model_simple.j2
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ func (o *{{ name }}) UnmarshalJSON(bytes []byte) (err error) {
{%- for attr, schema in model.get("properties", {}).items() %}
delete(additionalProperties, "{{ attr }}")
{%- endfor %}
} else {
return err
}
{%- endif %}

Expand Down

0 comments on commit badd45c

Please sign in to comment.