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
Hi!
I am using the generator version 4.2.0 and faced the following problem:
Enum classes are generated without the @Serdable annotation, which is why the Jackson annotations (@JsonCreator and @JsonValue) do not work.
This is a known problem - micronaut-projects/micronaut-serialization#780.
As a solution, it is recommended to add the @Serdable annotation, but I did not find such an opportunity in the generator configuration and in the modelEnum.mustache file.
Hi!
I am using the generator version 4.2.0 and faced the following problem:
Enum classes are generated without the @Serdable annotation, which is why the Jackson annotations (@JsonCreator and @JsonValue) do not work.
This is a known problem - micronaut-projects/micronaut-serialization#780.
As a solution, it is recommended to add the @Serdable annotation, but I did not find such an opportunity in the generator configuration and in the modelEnum.mustache file.
To illustrate, I made an example with tests - alButusov@30bffac (simple example from https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/ for allOff).
Does this require a modification of the generator or am I doing something wrong?
The text was updated successfully, but these errors were encountered: