mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
Merge pull request #74 from galaxie/fix/unique_items_check
Add validator draft3/draft4 schema unique check missed case
This commit is contained in:
commit
f4caad30bb
@ -750,6 +750,8 @@ check_max_items(Value, _MaxItems, State) ->
|
||||
%% object.</li>
|
||||
%% </ul>
|
||||
%% @private
|
||||
check_unique_items(_, false, State) ->
|
||||
State;
|
||||
check_unique_items([], true, State) ->
|
||||
State;
|
||||
check_unique_items(Value, true, State) ->
|
||||
|
@ -824,6 +824,8 @@ check_max_items(Value, _MaxItems, State) ->
|
||||
%% false.
|
||||
%%
|
||||
%% @private
|
||||
check_unique_items(_, false, State) ->
|
||||
State;
|
||||
check_unique_items([], true, State) ->
|
||||
State;
|
||||
check_unique_items(Value, true, State) ->
|
||||
|
Loading…
Reference in New Issue
Block a user