odin-jsonschema

Implementation of JSON schema for Odin
Log | Files | Refs | LICENSE

schema.json (425B)


      1 {
      2   "$schema": "http://json-schema.org/draft-07/schema#",
      3   "type": "object",
      4   "properties": {
      5     "start": { "$ref": "#/definitions/point" },
      6     "end": { "$ref": "#/definitions/point" }
      7   },
      8   "required": ["start", "end"],
      9   "definitions": {
     10     "point": {
     11       "type": "object",
     12       "properties": {
     13         "x": { "type": "number" },
     14         "y": { "type": "number" }
     15       },
     16       "required": ["x", "y"]
     17     }
     18   }
     19 }