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

[jsr339-experts] Re: Validation in Client API?

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sun, 24 Jul 2011 14:13:28 +0200

Actually I ever assumed that validation is a purely high level API, as it
deals with business constraints and not with http features.

 

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

Sent: Mittwoch, 20. Juli 2011 21:51
To: jsr339-experts_at_jax-rs-spec.java.net
Subject: [jsr339-experts] Validation in Client API?

 

Hi Experts,

 

 Marek and I met with Emmanuel Bernard (lead for Bean Validation JSR) this
morning. I'm happy to report that our server side proposal [1] is very much
inline with the work planned for BV 1.1. Specifically, they are planning to
add support for method and constructor param validation as part of JSR 349,
which is exactly what we need.

 

 In the next few days, I'll make some minor changes to our proposal to
incorporate some feedback and clarify the validation lifecycle in more
detail. Will likely only update the spec document and not the wiki.

 

 The one area that needs our attention is validation in the Client API. If
you read that section in [1], you'll understand some of the challenges we
face there. In particular, around annotation instances. Emmanuel's feedback
was to drop validation from this low-level API and revisit the problem when
a high-level API is discussed (where, likely, more assumptions about the
client/server contract are available).

 

 Is anyone opposed to dropping validation from the low-level API? If so,
please state your case ;)

 

-- Santiago

 

[1] http://java.net/projects/jax-rs-spec/pages/Validation