From 997e9a111ec3aa6e299c61af1aba3e86912fb0f5 Mon Sep 17 00:00:00 2001 From: Thomas Arts Date: Thu, 25 Jan 2018 11:50:07 +0100 Subject: [PATCH] Fixed failing `rebar3 edoc` --- src/jesse_json_path.erl | 2 +- src/jesse_schema_validator.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jesse_json_path.erl b/src/jesse_json_path.erl index 4438d24..4d34325 100644 --- a/src/jesse_json_path.erl +++ b/src/jesse_json_path.erl @@ -295,7 +295,7 @@ to_path(Value) -> "." ++ to_path_item(Value). %% @doc Return string representation of the given Path object. %% %% For example, if the path is constructed by pushing the following elements -%% <<"root">>, "object", <<"array">>, 12, item, <<"field">> +%% <<"root">>, "object", <<"array">>, 12, item, <<"field">> %% the resulting path will be the following string: %% "root.object.array[12].item.field" %% @end diff --git a/src/jesse_schema_validator.erl b/src/jesse_schema_validator.erl index 19e636a..5292494 100644 --- a/src/jesse_schema_validator.erl +++ b/src/jesse_schema_validator.erl @@ -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() }