Skip to content

Commit b2ef45e

Browse files
committed
Handle case with no non-inherited properties
1 parent a45fc67 commit b2ef45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
if (input == null)
312312
return false;
313313

314-
return {{#parent}}base.Equals(input) && {{/parent}}{{#allVars}}{{^isInherited}}{{^isContainer}}
314+
return {{#parent}}base.Equals(input){{#allVars}}{{^isInherited}}{{#-first}} && {{/-first}}{{/isInherited}}{{/allVars}}{{/parent}}{{#allVars}}{{^isInherited}}{{^isContainer}}
315315
(
316316
{{name}} == input.{{name}} ||
317317
{{^vendorExtensions.x-is-value-type}}

0 commit comments

Comments
 (0)