Skip to content

Commit

Permalink
support lowercase first letter properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Dec 14, 2020
1 parent f7249d1 commit 9213197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/rpdk/go/templates/types.go.tple
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package resource
// {{model_name}} is autogenerated from the json schema
type {{model_name}} struct {
{% for name, type in properties.items() %}
{{ name|uppercase_first_letter }} {{ type|translate_type }} `json:",omitempty"`
{{ name|uppercase_first_letter }} {{ type|translate_type }} `json:"{{name}},omitempty"`
{% endfor %}
}

Expand Down

0 comments on commit 9213197

Please sign in to comment.