Data_schema - declarative schemas for data transformations

New Version(s) Released!

0.2.9

Improvement

Allows for using a MFA tuple ({module, function, arguments}) as a casting function in a data schema. The value extracted from the input data will be set as the first argument in the arguments list.

0.2.8

Improvement

Improve the error message when the cast function does not return an okay tuple.

0.2.7

Improvement

Bump ex_doc to get newer looking docs.

0.2.6

Bug fix

Fix schema validations and error message.

We were not allowing valid schema syntax for an inline schema (ie a runtime schema that is provided at compile time), and our error message was wrong.

Now we correctly allow:

has_many: {:dep, "./Dep", {%{}, @place_schema}},
has_one: {:arrival, "./Arrival", {%{}, @place_schema}},

And similar.

2 Likes