Releases: oxidizing/conformist
Releases · oxidizing/conformist
0.8.1
0.8.0
Fixed
- Correctly handle optionals with no provided defaults
0.7.0
Added
Makefunctor to customize the error type and the error messages, which be default Englishstrings
0.6.0
Added
- Add
Conformist.listto support decoding list of'a
Changed
Conformist.Field.optionalis nowConformist.Field.is_optionalto avoid confusion withConformist.optional- The encoded value is assumed to be
string listinstead ofstring. This is preparation to support decoding of a list of strings.
0.5.0
Added
- Conformist type
datetimethat decodes toPtime.t. This replacesdatewhich has been deprecated.
0.4.0
CHANGES:
Changed
decode,validateanddecode_and_validateall return the sameerrortype
Added
- Improve error reporting by printing provided input values (list of values)
0.3.0
CHANGES:
Changed
decodereturns a triple containing(field_name, input, error_msg)instead of a concatenated string. This makes it easier to extract information.
Added
decode_and_validatecombinesdecodeandvalidatewhere the returned value is either the decoded value or a list of errors. When usingdecode_and_validate, one can forget about the difference betweendecodeandvalidateand simply forward the list of errors. This covers a common use case.
0.2.1
CHANGES:
Changed
- Replace
ppx_derivingwithsexplib
0.1.0
CHANGES:
[0.1.0] - 2020-09-29
Added
Conformist.Field.type_can be used to retrieve a string representation of the type- Support for custom
encodersfor custom types - Support for encoding default values if present, this can be used to print schemas
Fixed
- Move mandatory field name parameter to the end of create functions in order to get rid of the trailing () argument
[0.0.2] - 2020-09-29
Fixed
- Move
fold_leftto top level module and acceptConformist.tas input
[0.0.1] - 2020-09-20
Added
- Initial release supporting
int,float,string,bool,Ptime.dateand custom types
0.0.2
CHANGES:
[0.0.2] - 2020-09-29
Fixed
- Move
fold_leftto top level module and acceptConformist.tas input
[0.0.1] - 2020-09-20
Added
- Initial release supporting
int,float,string,bool,Ptime.dateand custom types