Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Add support for @required attribute on a parameter #671

Open
glassfishrobot opened this issue Oct 27, 2009 · 2 comments
Open

Add support for @required attribute on a parameter #671

glassfishrobot opened this issue Oct 27, 2009 · 2 comments

Comments

@glassfishrobot
Copy link

Jersey (or JAX-RS) does not currently allow us to set whether a parameter is
required or not. It is difficult to make assumptions on whether a param is
required (even in the case of form params since regexps can be used in clever
ways). It would be useful if parameters could be annotated with @required and if
the parameter is absent a 400 response will be returned.

This should also be set in WADL generation.

Environment

Operating System: All
Platform: Macintosh

@glassfishrobot
Copy link
Author

Reported by [email protected]

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JERSEY-399

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

No branches or pull requests

2 participants