jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Re: Re: Validation Draft

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sat, 18 Jun 2011 11:07:59 +0200

Great. :-)

 

From: Santiago Pericas-Geertsen [mailto:Santiago.PericasGeertsen_at_oracle.com]

Sent: Freitag, 17. Juni 2011 22:57
To: jsr339-experts_at_jax-rs-spec.java.net
Subject: [jsr339-experts] Re: [jax-rs-spec users] Re: Re: Validation Draft

 

 

On Jun 17, 2011, at 3:45 PM, Santiago Pericas-Geertsen wrote:





* All inspected applications are using root resources as dispatchers to sub
resources only, so a validation that is not working inside of sub resources
is useless for non-trivial applications. My proposal to solve this is: It
must be mandatory that validation is executed in sub resources, too.

 

 Sub-resources returned by sub-resource locators? Yes, I agree this needs
more exploration. I believe in 1.0 objects returned by sub-resource locators
are not modified by the implementation runtime (so field and property
binding isn't guaranteed) since they aren't managed objects. There's also
the issue of annotated constructor params in those objects since they are
created by the app and not the implementation.

 

 I have dropped the "root" qualifier in the wiki. More details will need to
be fleshed out, but it seemed like an unnecessary restriction of the first
draft.

 

-- Santiago