From 44f1ea96c4f47d0574bc6cc0f46ddc6415855b98 Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Fri, 30 Jun 2023 12:56:55 +0200 Subject: [PATCH] feat: make openapi validate less strict --- generator/generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator.go b/generator/generator.go index d95bc09..128007d 100644 --- a/generator/generator.go +++ b/generator/generator.go @@ -121,7 +121,7 @@ func NewGenerator(prefixId string, jwksUris map[string]string, allowedIssuers ma func (g *Generator) LoadOpenAPI3Doc(ctx context.Context, d *openapi3.T) error { g.doc = d - if validateErr := g.doc.Validate(ctx); validateErr != nil { + if validateErr := g.doc.Validate(ctx, openapi3.DisableExamplesValidation(), openapi3.DisableSchemaDefaultsValidation()); validateErr != nil { return validateErr }