-
Notifications
You must be signed in to change notification settings - Fork 56
Home
reinert edited this page Mar 16, 2013
·
12 revisions
What can you do with JJSchema?
- Generate json-schemas from Java Types
- Generate hyper-schemas from JSR311 (Java RESTful spec) annotated classes
What are the cool features related to Java that JJSchema supports?
- Simple Types
- All Java simple types are mapped to generate simple json-schemas
- Custom Collection Types
- If you intend to create a custom collection, than JJSchema can generate a custom array schema for you
- Custom Types
- JJSchema correctly process your Java classes as custom object schemas, requiring from you to use one simple annotation (SchemaProperty)
- Also JJSchema supports the Nullable annotation, when you intend to allow null values for a schema.
- It supports Java inheritance, merging the parent's schema with the child's one.
What are the features related to JSR311 that JJSchema supports?
- @GET, @POST, @PUT and @DELETE annotations
- @QueryParam, @FormParam are processed as parameters (other param annotations are passed by)
- Any Java Type as Parameter
- @Media annotation for declaring JSON Hyper-Schema media atributtes (mediaType and binaryEncoding)
- @Rel annotation for declaring the intended rel atrtibute (if not declared than the method name is assumed as the rel)
For better understanding how JSON Hyper-Schema works, please read the specification at http://json-schema.org/latest/json-schema-hypermedia.html.