Skip to content

Commit

Permalink
fix: udpate additional property json tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed May 29, 2024
1 parent 4eb7e2d commit 36197ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions modelina-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/generators/go/presets/CommonPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function renderJSONTag({
field.property instanceof ConstrainedDictionaryModel &&
field.property.serializationType === 'unwrap'
) {
return `json:"-",omitempty`;
return `json:"-,omitempty"`;
}
return `json:"${field.unconstrainedPropertyName},omitempty"`;
}
Expand Down

0 comments on commit 36197ab

Please sign in to comment.