Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jesse_json_path.erl
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ to_path(Value) -> "." ++ to_path_item(Value).
%% @doc Return string representation of the given <code>Path</code> object.
%%
%% For example, if the path is constructed by pushing the following elements
%% <code><<"root">>, "object", <<"array">>, 12, item, <<"field">></code>
%% <code> &lt;&lt;"root">>, "object", &lt;&lt;"array">>, 12, item, &lt;&lt;"field">></code>
%% the resulting path will be the following string:
%% <code>"root.object.array[12].item.field"</code>
%% @end
Expand Down
4 changes: 2 additions & 2 deletions src/jesse_schema_validator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
-define(OBJECT, <<"object">>).
-define(STRING, <<"string">>).

%% @doc General error definition tuple
%% General error definition tuple
-type error() ::
{ 'schema_invalid', Schema :: jesse:json_term(), reason() } |
{ 'data_invalid', Schema :: jesse:json_term(), reason(),
Data :: jesse:json_term() }.

%% @doc Uniform type of the error reasons
%% Uniform type of the error reasons
-type reason() :: { 'missing_id_field', Field :: binary() }
| { 'missing_required_property', Name :: binary() }
| { 'missing_dependency', Name :: binary() }
Expand Down