Skip to content

Commit

Permalink
openapi3: continue validation on valid oneOf properties (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp committed Dec 19, 2022
1 parent 1f680b5 commit a0b67a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi3/schema.go
Expand Up @@ -634,7 +634,7 @@ func (schema *Schema) validate(ctx context.Context, stack []*Schema) (err error)
if v == nil {
return foundUnresolvedRef(item.Ref)
}
if err = v.validate(ctx, stack); err == nil {
if err = v.validate(ctx, stack); err != nil {
return
}
}
Expand Down

0 comments on commit a0b67a0

Please sign in to comment.