Skip to content

Commit a0b67a0

Browse files
authored
openapi3: continue validation on valid oneOf properties (#721)
1 parent 1f680b5 commit a0b67a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi3/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ func (schema *Schema) validate(ctx context.Context, stack []*Schema) (err error)
634634
if v == nil {
635635
return foundUnresolvedRef(item.Ref)
636636
}
637-
if err = v.validate(ctx, stack); err == nil {
637+
if err = v.validate(ctx, stack); err != nil {
638638
return
639639
}
640640
}

0 commit comments

Comments
 (0)