bump(go-openapi/validate): d509235108fcf6ab4913d2dcb3a2260c0db2108e
This commit is contained in:
3
vendor/github.com/go-openapi/validate/slice_validator.go
generated
vendored
3
vendor/github.com/go-openapi/validate/slice_validator.go
generated
vendored
@@ -67,6 +67,9 @@ func (s *schemaSliceValidator) Validate(data interface{}) *Result {
|
||||
itemsSize = int64(len(s.Items.Schemas))
|
||||
for i := int64(0); i < itemsSize; i++ {
|
||||
validator := NewSchemaValidator(&s.Items.Schemas[i], s.Root, fmt.Sprintf("%s.%d", s.Path, i), s.KnownFormats)
|
||||
if val.Len() <= int(i) {
|
||||
break
|
||||
}
|
||||
result.Merge(validator.Validate(val.Index(int(i)).Interface()))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user