4 Commits
Author SHA1 Message Date
Aravind Gopalan d6768890ec Allow empty maps for required map fields (issue #256)
As reported in issue #256, currently, an empty map is unmarshalled into nil by easyjson
If a field is marked "required" or "!omitempty", then the empty map is a valid input and
we should unmarshal it into an empty map.

Similar logic for marshalling.

This change is to fix the behavior
2019-11-21 18:03:16 -08:00
Aleksandr Petrukhin 31e0226908 [Tests] add tests for disallow_unknown_fields 2018-05-29 16:32:28 +00:00
Steve Jiang 0ba5b87db7 Creates LexerError type
- Creates LexerError type for all possible parse errors generated by the
  Lexer, except for standard JSON library errors or through AddError
  method;
- Updates .gitignore to exclude JetBrain family directories and files.
2016-05-26 19:17:52 -07:00
Victor Starodub e8a814a5b5 Added a benchmark for github.com/ugorji/go/codec . Consistent naming for benchmarks. 2016-03-04 11:29:01 +10:00