Skip to content

Commit 5fd8feb

Browse files
committed
more from PR getkin#210
Signed-off-by: Pierre Fenoll <[email protected]>
1 parent 4f5a30d commit 5fd8feb

13 files changed

+316
-408
lines changed

openapi3/schema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,9 @@ func (schema *Schema) visitJSONArray(value []interface{}, fast bool) (err error)
995995
}
996996

997997
// "uniqueItems"
998+
if sliceUniqueItemsChecker == nil {
999+
sliceUniqueItemsChecker = isSliceOfUniqueItems
1000+
}
9981001
if v := schema.UniqueItems; v && !sliceUniqueItemsChecker(value) {
9991002
if fast {
10001003
return errSchema

0 commit comments

Comments
 (0)