Fix xref checks #27

This commit is contained in:
Andrei Neculau 2014-10-31 19:29:59 +01:00
parent 066a0b6ec0
commit a838bb70b2
2 changed files with 6 additions and 1 deletions

View File

@ -7,3 +7,8 @@
]}.
{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
{xref_checks, [ fail_on_warning
, undefined_function_calls
, deprecated_function_calls
]}.

View File

@ -44,7 +44,7 @@ empty_if_not_found(Value) -> Value.
%% will be thrown.
-spec get_schema_id(Schema :: jesse:json_term()) -> string().
get_schema_id(Schema) ->
case jesse_json_path:get_value(?ID, Schema, ?not_found) of
case jesse_json_path:value(?ID, Schema, ?not_found) of
?not_found -> throw({schema_invalid, Schema, missing_id_field});
Id -> erlang:binary_to_list(Id)
end.