users@jersey.java.net

Generating a param's required attribute in WADL

From: Louis Polycarpou <louis_at_adjoovo.com>
Date: Tue, 20 Oct 2009 20:34:46 +0100

According to the WADL spec from 2006-11-09, a Parameter does not need
to be specified if required is not set in the WADL:

required Optionally indicates whether the parameter is required to be
present or not, defaults to false (parameter not required).

Is there a way to set this parameter using the WADL generator so that
it appears in the WADL? This does not seem to be set automatically for
form (template) or query param styles and I can't find a custom
annotation to do it either.

Thanks,
Louis

Louis Polycarpou (founder)


Adjoovo
SERVICE-ORIENTED COLLABORATION
http://adjoovo.com
http://twitter.com/adjoovo
+44 (0) 7786 136653