From 7b33b16e5bf9a60c8bf29649c7d0b50d43aad43f Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Mon, 19 Dec 2022 17:59:11 +0100 Subject: [PATCH] openapi3: continue validation on valid oneOf properties Signed-off-by: Pierre Fenoll --- openapi3/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi3/schema.go b/openapi3/schema.go index 20c1fa550..d795fb530 100644 --- a/openapi3/schema.go +++ b/openapi3/schema.go @@ -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 } }