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

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

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Fri, 17 Jun 2011 16:57:04 -0400

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