From a212c8c192b7438fd0504acba339028477a1fcd6 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 22 Dec 2017 23:46:27 -0700 Subject: [PATCH] Use CodeName in ranhcer client --- generator/client_template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/client_template.go b/generator/client_template.go index 89d955263..b7c673a88 100644 --- a/generator/client_template.go +++ b/generator/client_template.go @@ -10,7 +10,7 @@ type Client struct { clientbase.APIBaseClient {{range .schemas}} - {{- if . | hasGet }}{{.ID | capitalize}} {{.ID | capitalize}}Operations + {{- if . | hasGet }}{{.CodeName}} {{.CodeName}}Operations {{end}}{{end}}} func NewClient(opts *clientbase.ClientOpts) (*Client, error) { @@ -24,7 +24,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) { } {{range .schemas}} - {{- if . | hasGet }}client.{{.ID | capitalize}} = new{{.ID | capitalize}}Client(client) + {{- if . | hasGet }}client.{{.CodeName}} = new{{.CodeName}}Client(client) {{end}}{{end}} return client, nil }