-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow spreading of record fields and variant arguments in json encodi…
…ng #354 (#355) * update type_desc * update test_common * update example * update json_config * update src/lib_codec/json.ml * update lib_gen/caml_datatype.ml * add codec to `nested * fix nested_to_coretype of lib_codec/json.ml * fix indent of lib_codec/json.ml * update lib_gen/utils.ml * make implementation of explain_encoded_json_shape common. * update gen_json_encoder with nested type * fix fold_coretypes in type_desc.ml * add collect_nested_types to json_codec.ml * update gen_json_encoder * update implementation of gen_json_decoder_impl * add validate_spreading_type to lib_codec * fix base_mangling_style of lib_codec * fix validate_spreading_type signature * fix explain_encoded_json_shape * fix imple of gen_encoder/decoder * update gen_json_schema * regenerate example files * update impl of lib_gen_foreign and lib_gen_ts * update tests * fix gen_json_schema * update docs * update ocamlformat * fix implementations * fix implementation * add ex15 * update Json_shape_explaner * fix error message * add comments * fix gen_json_schema * add ex16 * Move the expected json_shape_explanation to each typedesc example file. * update caml_datatype * update doc * fix ex01.ml * fix ex16 sample_values * fix gen_json_encoder * add samples to of_json_error_examples * fix of_json_error_examples * add check_field_name_collision * fix of_json_error_examples * fux check_field_name_collition * update to_refl * Update src/lib_codec/config/json_config.mli --------- Co-authored-by: Haochen M. Kotoi-Xie <[email protected]>
- Loading branch information
1 parent
810bbbe
commit 2508cae
Showing
65 changed files
with
3,686 additions
and
1,772 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
profile = default | ||
version = 0.25.1 | ||
version = 0.26.0 |
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
Oops, something went wrong.