New issue

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

allowedvalues ignored for APIObjectField if it's an enum type #123

Closed
ghost opened this Issue Jul 14, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 14, 2015

I have an enum that I have implemented a Converter for to use a getLabel() method for conversion rather than the standard name value. My allowedvalues values are ignored on APIObjectField and no matter what I do it simply shows the enum constants.

@fabiomaffioletti

This comment has been minimized.

Show comment
Hide comment
@fabiomaffioletti

fabiomaffioletti Aug 3, 2015

Owner

I see. I think the best way to proceed is to use the allowedvalues property of the ApiObjectField annotation to override the enum values. I'll implement that.

Owner

fabiomaffioletti commented Aug 3, 2015

I see. I think the best way to proceed is to use the allowedvalues property of the ApiObjectField annotation to override the enum values. I'll implement that.

@fabiomaffioletti fabiomaffioletti added this to the 1.1.16 milestone Aug 3, 2015

@fabiomaffioletti fabiomaffioletti self-assigned this Aug 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment