Skip to content

Commit 1b6f89a

Browse files
committed
Fix Java code generation when title is used to generate a friendly name
1 parent 2f7e0c2 commit 1b6f89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/io.github.abelgomez.asyncapi/src/io/github/abelgomez/asyncapi/generator/AsyncApiGenerator.xtend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ class AsyncApiGenerator extends AbstractGenerator {
617617
618618
def name(AbstractSchema s) {
619619
if (s instanceof Reference) {
620-
return ((s as Reference).resolve as NamedSchema).name;
620+
return ((s as Reference).resolve as NamedSchema).friendlyClassName;
621621
} else {
622622
throw new RuntimeException("Unexpected type of Schema (expecting a Reference): " + s);
623623
}

0 commit comments

Comments
 (0)