Skip to content

Commit

Permalink
Merge pull request #33 from cerberauth/make-validate-less-strict
Browse files Browse the repository at this point in the history
feat: make openapi validate less strict
  • Loading branch information
emmanuelgautier authored Jun 30, 2023
2 parents a480760 + 44f1ea9 commit 6c53d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6c53d6d

Please sign in to comment.