Skip to content

Commit

Permalink
fix: keyword may be duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyOGo committed Apr 16, 2021
1 parent 91cdf8c commit 8ba4b47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ export function getTypes(
types.push('keyword');
}

if (ignoreValues && getIgnoredValues(ignoreValues, property)) {
if (
types.indexOf('keyword') === -1 &&
ignoreValues &&
getIgnoredValues(ignoreValues, property)
) {
types.push('keyword');
}

Expand Down

0 comments on commit 8ba4b47

Please sign in to comment.