All notable changes to this project will be documented in this file.
- ability to pass partial MFA (aka
{mod, fun}
) or complete MFA (aka{mof, fun, args}
) to:transform
,:dependent
and:default
directives
- fixes for
0.2.10
[45300d3]- default values are also applied to nested schemas when the parent node is
nil
- all type schemas are treat as optional by default
- allow types as valid schema definition
:date
:time
:datetime
:naive_datetime
:pid
- default values are also applied to nested schemas when the parent node is
0.2.8 - 2024-08-01
- handle structs as input data for schemas [859a0fd]
- support validate enumerable schemas on raw data structures (eg.
:list
type) [32aa540]
0.2.7 - 2024-07-28
- Support multiple dependencies for the
:dependent
type [1be99ef] :cond
type receives "root data" and is treated as required by default [336316c]- basic
Jason.Protocol
forPeri.Error
(optional) [9031b1e] - correctly pass "root data" to
:cond
and:dependent
types [b79dfbd] - allow usage of
:one_of
andget_schema/1
[cb1b250] - handle schemas definitions with string keys [266b5a2]
0.2.6 - 2024-06-27
- Data generation with based on
StreamData
provided as thePeri.generate/1
function that receives a schema and returns a stream of generated data that matches this schema. [c85b972]
0.2.5 - 2024-06-22
- Numeric and String Validations: Implemented new validation types for numeric and string data, including regex patterns, equality, inequality, range, and length validations. This allows for more granular and specific data validations. [9bb797e]
0.2.4 - 2024-06-21
- Implemented new type
{type, {:default, default}}
. [a569ecf, 821935f] - Implemented new type
{type, {:transform, mapper}}
. [785179d]
0.2.3 - 2024-06-18
- Implemented schema validation, bang functions, and improved error inspection. [fc061f0]
- Improved error handling and inspecting. [f4d504b, afb054e]
0.2.2 - 2024-06-17
- Native support for keyword lists. [9f8aaef]
conforms?/1
function. [9a39ed8]
0.2.1 - 2024-06-16
- Continuous Integration (CI) setup. [16cf116]
- Corrected mix.exs file for hex package. [af5a744]
0.2.0 - 2024-06-15
- Enhanced error handling features. [f4d504b, afb054e]
- Documentation updates in README and Hex docs. [4fd48ce]
0.1.4 - 2024-06-10
- Support for
any
,atom
,oneof
, andeither
types. [6a225f4]
0.1.2 - 2024-06-05
- Removed unknown fields from schema validation. [3fa79d4]
- Allowed custom, composable, and recursive schemas. [fd1f593]
- Support for string map keys. [1b6edef]
0.1.1 - 2024-06-02
- Support for
tuple
,lists
,enum
, and custom types. [7766adc]
0.1.0 - 2024-06-01
- Initial version of Peri with basic schema validation functionalities. [7044ea7]