diff --git a/generators/ambassador/ambassador.go b/generators/ambassador/ambassador.go index d2688ca..2deca1c 100644 --- a/generators/ambassador/ambassador.go +++ b/generators/ambassador/ambassador.go @@ -193,7 +193,7 @@ func (a *AbstractGenerator) Generate(opts *options.Options, spec *openapi3.T) (s } // take global timeout options - timeoutOpts := opts.GetTimeoutOptions(path, method) + timeoutOpts := opts.GetTimeoutOpts(path, method) // if final timeout options are not empty, include them if !reflect.DeepEqual(options.TimeoutOptions{}, timeoutOpts) { diff --git a/generators/nginx_ingress/nginx_ingress.go b/generators/nginx_ingress/nginx_ingress.go index 4798f32..b6d3b1b 100644 --- a/generators/nginx_ingress/nginx_ingress.go +++ b/generators/nginx_ingress/nginx_ingress.go @@ -121,7 +121,7 @@ func (g *Generator) Generate(opts *options.Options, spec *openapi3.T) (string, e corsOpts := opts.GetCORSOpts(path, "") rateLimitOpts := opts.GetRateLimitOpts(path, "") - timeoutOpts := opts.GetTimeoutOptions(path, "") + timeoutOpts := opts.GetTimeoutOpts(path, "") // Get initial set of annotation based on current options // will be modified next based on current path diff --git a/options/timeout.go b/options/timeout.go index 7425ecb..cf8134e 100644 --- a/options/timeout.go +++ b/options/timeout.go @@ -9,7 +9,7 @@ type TimeoutOptions struct { IdleTimeout uint32 `yaml:"idle_timeout,omitempty" json:"idle_timeout,omitempty"` } -func (o *Options) GetTimeoutOptions(path, method string) TimeoutOptions { +func (o *Options) GetTimeoutOpts(path, method string) TimeoutOptions { // take global timeout options timeoutOpts := o.Timeouts