Skip to content

Commit 6e495af

Browse files
committed
lint
1 parent 8680a2e commit 6e495af

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/jesse_json_path.erl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
%% @doc Implementation of Key Value Coding style "queries" for commonly
55
%% used Erlang data structures.
66
-module(jesse_json_path).
7-
-export([parse/1, path/2, path/3, value/3, to_proplist/1, unwrap_value/1, normalize/2]).
7+
-export([ parse/1
8+
, path/2
9+
, path/3
10+
, value/3
11+
, to_proplist/1
12+
, unwrap_value/1
13+
, normalize/2
14+
]).
815

916
-ifdef(erlang_deprecated_types).
1017
-type kvc_obj_node() :: proplist() | {struct, proplist()} | [{}] | dict()

src/jesse_validator_draft4.erl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,12 @@ check_additional_properties(Value, AdditionalProperties, State) ->
480480
%% or PatternProperties.
481481
%% @private
482482
get_additional_properties(Value, Properties, PatternProperties) ->
483-
ValuePropertiesNames = [jesse_json_path:normalize(Name, binary) || {Name, _} <- unwrap(Value)],
484-
SchemaPropertiesNames = [jesse_json_path:normalize(Name, binary) || {Name, _} <- unwrap(Properties)],
483+
ValuePropertiesNames = [ jesse_json_path:normalize(Name, binary)
484+
|| {Name, _} <- unwrap(Value)
485+
],
486+
SchemaPropertiesNames = [ jesse_json_path:normalize(Name, binary)
487+
|| {Name, _} <- unwrap(Properties)
488+
],
485489
Patterns = [Pattern || {Pattern, _} <- unwrap(PatternProperties)],
486490
ExtraNames0 = lists:subtract(ValuePropertiesNames, SchemaPropertiesNames),
487491
ExtraNames = lists:foldl( fun(Pattern, ExtraAcc) ->

0 commit comments

Comments
 (0)