mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
style
This commit is contained in:
parent
9c68592845
commit
1905f847fe
@ -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()}
|
||||
|
Loading…
Reference in New Issue
Block a user