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
public enum Distance { KILOMETER("km", 1000), MILE("miles", 1609.34), METER("meters", 1), INCH("inches", 0.0254), CENTIMETER("cm", 0.01), MILLIMETER("mm", 0.001); private String unit; private final double meters; private Distance(String unit, double meters) { this.unit = unit; this.meters = meters; } public String getUnit() { return unit; } public double getMeters() { return meters; } }
private Distance distance;
Will be equivalent to
/** * @see Distance */ private String distance;
json.rule.enum.convert[your enum class]=your enum class#value field
abbreviated:
json.rule.enum.convert[your enum class]=#value field
getter
json.rule.enum.convert[your enum class]=your enum class#method
json.rule.enum.convert[your enum class]=~#method
json.rule.enum.convert[groovy:it.extend("com.itangcent.Describable")]=~#desc
see jackson-serialize-enums
The text was updated successfully, but these errors were encountered:
support by #138
Sorry, something went wrong.
Merge pull request #137 from tangcent/fix/#134
6aa207e
refactor `YapiApiHelper`
tangcent
No branches or pull requests
By default, EasyApi will represent Java Enums as simple String – for example:
Will be equivalent to
abbreviated:
getter
) - for example:abbreviated:
see jackson-serialize-enums
The text was updated successfully, but these errors were encountered: