You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the value is explicit nil, the zero value for {{>field_type}} will be returned
99
+
// If the value is explicit nil, the zero value for {{>field_type_base}} will be returned
100
100
{{/isNullable}}
101
101
{{#deprecated}}
102
102
// Deprecated
103
103
{{/deprecated}}
104
-
func (o *{{classname}}) Get{{name}}() {{>field_type}} {
104
+
func (o *{{classname}}) Get{{name}}() {{>field_type_base}} {
105
105
if o == nil{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
106
-
var ret {{>field_type}}
106
+
var ret {{>field_type_base}}
107
107
return ret
108
108
}
109
109
@@ -128,13 +128,13 @@ func (o *{{classname}}) Get{{name}}() {{>field_type}} {
128
128
{{#deprecated}}
129
129
// Deprecated
130
130
{{/deprecated}}
131
-
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{>field_type}}, bool) {
131
+
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{>field_type_base}}, bool) {
132
132
if o == nil{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
@@ -154,7 +154,7 @@ func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/is
154
154
{{#deprecated}}
155
155
// Deprecated
156
156
{{/deprecated}}
157
-
func (o *{{classname}}) Set{{name}}(v {{>field_type}}) {
157
+
func (o *{{classname}}) Set{{name}}(v {{>field_type_base}}) {
158
158
{{#isNullable}}
159
159
{{#vendorExtensions.x-golang-is-container}}
160
160
o.{{name}} = v
@@ -185,9 +185,9 @@ func (o *{{classname}}) GetDefault{{nameInPascalCase}}() interface{} {
185
185
{{#deprecated}}
186
186
// Deprecated
187
187
{{/deprecated}}
188
-
func (o *{{classname}}) Get{{name}}() {{>field_type}} {
188
+
func (o *{{classname}}) Get{{name}}() {{>field_type_base}} {
189
189
if o == nil{{^isNullable}} || IsNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}.Get()){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
190
-
var ret {{>field_type}}
190
+
var ret {{>field_type_base}}
191
191
return ret
192
192
}
193
193
{{#isNullable}}
@@ -211,13 +211,13 @@ func (o *{{classname}}) Get{{name}}() {{>field_type}} {
211
211
{{#deprecated}}
212
212
// Deprecated
213
213
{{/deprecated}}
214
-
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{>field_type}}, bool) {
214
+
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{>field_type_base}}, bool) {
215
215
if o == nil{{^isNullable}} || IsNil(o.{{name}}){{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
0 commit comments