This commit is contained in:
Andrei Neculau 2019-02-05 14:16:39 +01:00 committed by GitHub
parent 9c68592845
commit 1905f847fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,18 +37,22 @@
-type error() :: {error, [error_reason()]}.
-type error_reason() :: { 'schema_invalid'
-type error_reason() :: { schema_invalid
, Schema :: jesse:json_term()
, Error :: error_type()
}
| { 'data_invalid'
| { data_invalid
, Schema :: jesse:json_term()
, Error :: error_type()
, Data :: jesse:json_term()
, Path :: [binary()]
}
| { data_error, {parse_error, _}}
| { schema_error, {parse_error, _}}.
| { data_error
, {parse_error, _}
}
| { schema_error
, {parse_error, _}
}.
-type error_type() :: atom()
| {atom(), jesse:json_term()}