-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new strict Json flavors mechanism for RestJson (#5674)
This requires all object types to be explicitly white-listed for default serialization. The PR makes the minimal changes, although a number of similar mechanisms in eth2_rest_serialization can now be removed.
- Loading branch information
Showing
7 changed files
with
245 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule nim-json-serialization
updated
12 files
+0 −1 | json_serialization.nim | |
+29 −0 | json_serialization/format.nim | |
+17 −18 | json_serialization/lexer.nim | |
+201 −143 | json_serialization/reader.nim | |
+3 −2 | json_serialization/std/options.nim | |
+3 −2 | json_serialization/stew/results.nim | |
+0 −1 | json_serialization/types.nim | |
+28 −15 | json_serialization/writer.nim | |
+0 −1 | tests/test_all.nim | |
+2 −0 | tests/test_lexer.nim | |
+73 −11 | tests/test_serialization.nim | |
+7 −9 | tests/utils.nim |
Submodule nim-serialization
updated
3 files
+21 −2 | serialization/formats.nim | |
+4 −2 | serialization/object_serialization.nim | |
+0 −3 | serialization/testing/generic_suite.nim |