File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
.generator/src/generator/templates Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func (obj *{{ name }}) UnmarshalJSON(data []byte) error {
6363 if err == nil {
6464 if obj.{{ attributeName }} != nil {% if oneOf .get ("type" , "object" ) == "object" %} && obj.{{ attributeName }}.UnparsedObject == nil {% endif %} {
6565 json{{ attributeName }}, _ := datadog.Marshal(obj.{{ attributeName }})
66- if string(json{{ attributeName }}) == "{}"{% if not oneOf |is_primitive and not oneOf .required %} && string(data) != "{}" {% endif %} { // empty struct
66+ if string(json{{ attributeName }}) == "{}"{% if not oneOf |is_primitive and not oneOf .required %} && string(data) != "{}" {% endif %} { // empty struct
6767 obj.{{ attributeName }} = nil
6868 } else {
6969 match++
You can’t perform that action at this time.
0 commit comments