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
Java enum classes generation is broken if java code is generated to use jackson library to serialize/deserialize json into java objects and errorOnUnknownEnum is turned on.
It affects at least 3.0.36 version.
The generated code looks like:
@JsonCreator
public static EnumName fromValue(String input) {
...
throw new IllegalArgumentException("Unexpected value '" + text + "' for 'EnumName' enum.");
}
the issue is that the method parameter has name input, while exception text uses variable with name text to produce error message.
The text was updated successfully, but these errors were encountered:
Java enum classes generation is broken if java code is generated to use jackson library to serialize/deserialize json into java objects and errorOnUnknownEnum is turned on.
It affects at least 3.0.36 version.
The generated code looks like:
the issue is that the method parameter has name
input
, while exception text uses variable with nametext
to produce error message.The text was updated successfully, but these errors were encountered: