JSON (JavaScript Object Notation) JsonSchema defines the media type "application/schema+json", a JSON based format for defining the structure of JSON data. JSON JsonSchema provides a contract for what JSON data is required for a given application and how to interact with it. JSON JsonSchema is intended to define validation, documentation, hyperlink navigation, and interaction control of JSON data.
JSON (JavaScript Object Notation) JsonSchema is a JSON media type for defining the structure of JSON data. JSON JsonSchema provides a contract for what JSON data is required for a given application and how to interact with it. JSON JsonSchema is intended to define validation, documentation, hyperlink navigation, and interaction control of JSON data.An example JSON JsonSchema provided by the JsonSchema draft:
{ "name":"Product", "properties":{ "id":{ "type":"number", "description":"Product identifier", "required":true }, "name":{ "description":"Name of the product", "type":"string", "required":true }, "price":{ "required":true, "type": "number", "minimum":0, "required":true }, "tags":{ "type":"array", "items":{ "type":"string" } } }, "links":[ { "rel":"full", "href":"{id}" }, { "rel":"comments", "href":"comments/?id={id}" } ] }@author jphelan
This is the class you will use the most often. It is, in essence, a {@link JsonValidator} initialized with a single JSON Schema. Note however that thisclass still retains the ability to resolve JSON References.
It has no public constructors: you should use the appropriate methods in {@link JsonSchemaFactory} to obtain an instance of this class.
Purpose: This class is the root of a JAXB model representing a JSON Schema. An instance is created by the JsonSchemaGenerator based on an EclipseLink project and marshalled out using EclipseLink to create a JsonSchema. @see JsonSchemaGenerator @author mmacivor
|
|
|
|
|
|