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
Copy file name to clipboardexpand all lines: templates/csharp/modelOneOf.mustache
+3-3
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@
65
65
/// the InvalidClassException will be thrown{{/lambda.escape-generic}}
66
66
/// </summary>
67
67
/// <returns>An instance of {{#lambda.escape-generic}}{{dataType}}{{/lambda.escape-generic}}</returns>
68
-
public {{{dataType}}}{{#vendorExtensions.x-has-child-generic}}<T>{{/vendorExtensions.x-has-child-generic}} As{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#isArray}}{{^complexType}}{{#lambda.titlecase}}{{{items.dataType}}}{{/lambda.titlecase}}{{/complexType}}{{/isArray}}()
68
+
public {{{dataType}}}{{#vendorExtensions.x-has-child-generic}}<T>{{/vendorExtensions.x-has-child-generic}} As{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#lambda.titlecase}}{{{items.dataType}}}{{/lambda.titlecase}}()
/// {{#lambda.escape-generic}}Check if the actual instance is of `{{{dataType}}}` type.{{/lambda.escape-generic}}
82
82
/// </summary>
83
83
/// <returns>Whether or not the instance is the type</returns>
84
-
public bool Is{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#isArray}}{{^complexType}}{{#lambda.titlecase}}{{{items.dataType}}}{{/lambda.titlecase}}{{/complexType}}{{/isArray}}()
84
+
public bool Is{{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}}{{#lambda.titlecase}}{{{items.dataType}}}{{/lambda.titlecase}}()
Copy file name to clipboardexpand all lines: templates/kotlin/oneof_interface.mustache
+14-2
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,19 @@ public sealed interface {{classname}} {
48
48
{{/composedSchemas.oneOf}}
49
49
{{/vendorExtensions.x-is-multi-array}}
50
50
51
-
{{^vendorExtensions.x-is-multi-array}}
51
+
{{#vendorExtensions.x-is-multi-map}}
52
+
{{#composedSchemas.oneOf}}
53
+
{{^isModel}}
54
+
{{^isEnumRef}}
55
+
public fun of{{#isMap}}{{#lambda.type-to-name}}{{{datatypeWithEnum}}}{{/lambda.type-to-name}}{{/isMap}}(value: {{{datatypeWithEnum}}}): {{classname}} {
0 commit comments