Merge pull request #74 from galaxie/fix/unique_items_check

Add validator draft3/draft4 schema unique check missed case
This commit is contained in:
Andrei Neculau 2019-02-05 14:08:43 +01:00 committed by GitHub
commit f4caad30bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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) ->

View File

@ -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) ->