Home Reference Source Test Repository

Typedef

Static Public Summary
public

A valid JSON Schema for this class.

Static Public

public Schema: Object source

A valid JSON Schema for this class. You can find examples at http://json-schema.org/examples.html. There is also a generator for JSON data. http://jsonschema.net/#/

Example:

 {
   "title": "Example Schema",
   "type": "object",
   "properties": {
     "firstName": {
       "type": "string"
     },
     "lastName": {
       "type": "string"
     },
     "age": {
       "description": "Age in years",
       "type": "integer",
       "minimum": 0
     }
   },
   "required": ["firstName", "lastName"]
 }

See: