--
You received this message because you are subscribed to the Google Groups "jsonschema2pojo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonschema2pojo-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonschema2pojo-users/53326ff4-498e-4836-9c80-8ed05a58fb2b%40googlegroups.com.
The ObjectMapper will use the value() method because it's annotated with @JsonValue. You'll see that the string held inside the value field in the enum is correct, even though the enum name follows the Java conventions.These values will serialise correctly.
On Sat, 30 Nov 2019, 14:02 , <mlic...@gmail.com> wrote:
--HiCurrently string enum names are being modified (uppercased, camelcase causes underscores inserted) when the POJO is created.This is unfortunate, as it's causing an inconsistency:Serializing such a POJO (say, with a default ObjectMapper) will create JSON that is not actually compliant with the schema.So my question, has anyone managed to configure jsonschema2pojo such that it does not modify enum names? That'd very helpful.Thanks- MartinPS: Yes there's 'javaEnumNames', but that's quite a workaround, and it's cumbersome and errorprone to maintain the same enum list twice.
You received this message because you are subscribed to the Google Groups "jsonschema2pojo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonschema2pojo-users+unsub...@googlegroups.com.