We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON body after serialization:
{"courier":"ups-mi"}
{"courier":"UPS_MAIL_INNOVATION"}
com.fasterxml.jackson.annotation.JsonValue
public enum Courier { UPS("ups"), USPS("usps"), UPS_MAIL_INNOVATION("ups-mi"), ASENDIA("asendia-usa"), DHL("dhl-gm"); private final String code; Courier(String code) { this.code = code; } @JsonValue public String getCode() { return code; } }
You can find example with serde here. Example with jackson (works correct) here.
Mac OS Sonoma 14.3.1 JDK 21
https://github.com/alexey-plotnikoff/micronaut-serde
4.3.4
The text was updated successfully, but these errors were encountered:
Enum needs to be annotated with @Serdeable. Maybe we can make it @Serdeable by default in this case
@Serdeable
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
JSON body after serialization:
Actual Behaviour
JSON body after serialization:
Steps To Reproduce
com.fasterxml.jackson.annotation.JsonValue
annotation in enum.For example:
You can find example with serde here.
Example with jackson (works correct) here.
Environment Information
Mac OS Sonoma 14.3.1
JDK 21
Example Application
https://github.com/alexey-plotnikoff/micronaut-serde
Version
4.3.4
The text was updated successfully, but these errors were encountered: