Skip to content
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

@Nullable form parameters? #522

Open
Kricket opened this issue Jul 3, 2015 · 1 comment
Open

@Nullable form parameters? #522

Kricket opened this issue Jul 3, 2015 · 1 comment

Comments

@Kricket
Copy link

Kricket commented Jul 3, 2015

We have a form that sends it data to the wisdom server.
One of the fields (@FormParameter) sent represents a Date.
Currently, if the date is not provided, wisdom does not even complete the request. This is because the constructor for java.util.Date throws an exception when asked to parse a null String.

I noticed the @DefaultValue annotation, but this only accepts the String that the request "should have" sent. Wouldn't it be cool to recognize @nullable so that we could receive a null Date instead?

@cescoffier
Copy link
Member

I agree, that would be nice !

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

No branches or pull requests

3 participants