eclipse-ee4j / eclipse-ee4j/jersey

Add support for @required attribute on a parameter

Open
#671 4 comments 0 reactions 0 assignees View on GitHub
Component: core Priority: Major Type: Improvement
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.