Skip to content

Commit

Permalink
easyjson codegen with omitempty=false
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Mar 2, 2021
1 parent 534f771 commit c8f462a
Show file tree
Hide file tree
Showing 12 changed files with 22,915 additions and 75,960 deletions.
2 changes: 1 addition & 1 deletion mavgen/mavgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func (d *Dialect) generateFile(filePath string, packageName string, commonPackag
PkgName: p.PkgName,
Types: p.StructNames,
OutName: strings.ReplaceAll(filePath, ".go", "_easyjson.go"),
OmitEmpty: true,
OmitEmpty: false,
}
if err := g.Run(); err != nil {
return fmt.Errorf("JSON marshaller/unmarshaller Bootstrap failed: %v", err)
Expand Down
Loading

0 comments on commit c8f462a

Please sign in to comment.