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
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Hello,
when a typeDeclaration.name() starts with a lowercase letter, the generated "looksLike" method name is transformed in UnionDeserializationGenerator.buildLooksLike() to camel case with the call Names.methodName("looksLike", typeDeclaration.name());
However, when generating the code that calls the "looksLike" methods, it is not transformed into camel case. I fixed this by changing UnionDeserializationGenerator:95 to be consistent with the above call:
String name = Names.methodName("looksLike", typeDeclaration.name());
deserialize.addStatement("if ( " + name + "(map) ) return new $T(mapper.convertValue(map, $T.class))",
unionTypeName, unionPossibility);
The text was updated successfully, but these errors were encountered:
Hello,
when a typeDeclaration.name() starts with a lowercase letter, the generated "looksLike" method name is transformed in
UnionDeserializationGenerator.buildLooksLike()
to camel case with the callNames.methodName("looksLike", typeDeclaration.name());
However, when generating the code that calls the "looksLike" methods, it is not transformed into camel case. I fixed this by changing UnionDeserializationGenerator:95 to be consistent with the above call:
The text was updated successfully, but these errors were encountered: