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
I would like to propose an improvement for the generated java sources based on the API contract.
I think it would be very interesting to give the possibility to add the @Deprecated annotation to an enum value.
@Deprecated
For this, you could add a new extension, e.g. x-deprecated and add the value to deprecated.
SaleBasePeriodType: type: string enum: - ACCUMULATED_CAMPAIGN - YESTERDAY - FISCAL_YEAR - LAST_FISCAL_YEAR x-deprecated: # new custom extension - ACCUMULATED_CAMPAIGN
Desired code:
public enum SaleBasePeriodTypeDTO { @Deprecated // <- annotation added ACCUMULATED_CAMPAIGN("ACCUMULATED_CAMPAIGN"), YESTERDAY("YESTERDAY"), FISCAL_YEAR("FISCAL_YEAR"), LAST_FISCAL_YEAR("LAST_FISCAL_YEAR"); private String value; SaleBasePeriodTypeDTO(String value) { this.value = value; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
I would like to propose an improvement for the generated java sources based on the API contract.
I think it would be very interesting to give the possibility to add the
@Deprecated
annotation to an enum value.Describe the solution you'd like
For this, you could add a new extension, e.g. x-deprecated and add the value to deprecated.
Desired code:
The text was updated successfully, but these errors were encountered: