mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 17:45:25 +00:00
Fix xref checks #27
This commit is contained in:
parent
066a0b6ec0
commit
a838bb70b2
@ -7,3 +7,8 @@
|
||||
]}.
|
||||
|
||||
{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
|
||||
|
||||
{xref_checks, [ fail_on_warning
|
||||
, undefined_function_calls
|
||||
, deprecated_function_calls
|
||||
]}.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user