users@jersey.java.net

[Jersey] Re: Exposing JSON schema/resource in REST

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Tue, 1 Nov 2011 10:07:21 -0700

On Tue, Nov 1, 2011 at 2:57 AM, Pavel Bucek <pavel.bucek_at_oracle.com> wrote:
> Hello Raji,
>
> yes, Jersey supports WADL - its generated for each app by default and it is
> accessible at <context-root>/application.wadl or its returned in response to
> OPTIONS request.
>
> Problem in JSON here is obvious - JSON does not have anything like JSON
> schema yet, so we can't really specify much about exposed/accepted entity.

FWIW, there actually is JSON Schema:

http://json-schema.org/

and there is active development around specifying it.

However, I would agree in that it is not nearly as useful (at this
point) for defining data types as XML Schema is for XML (others may
disagree -- I am disappointed at its lack of support for common OO
concepts).

-+ Tatu +-