diff --git a/openapi3gen/openapi3gen.go b/openapi3gen/openapi3gen.go index a46bb9e22..a7f6fad4c 100644 --- a/openapi3gen/openapi3gen.go +++ b/openapi3gen/openapi3gen.go @@ -59,9 +59,7 @@ func UseAllExportedFields() Option { } func CreateTypeNameGenerator(tngnrt TypeNameGenerator) Option { - return func(x *generatorOpt) { - x.typeNameGenerator = tngnrt - } + return func(x *generatorOpt) { x.typeNameGenerator = tngnrt } } // ThrowErrorOnCycle changes the default behavior of creating cycle