odin-jsonschema

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

schema.json (569B)


      1 {
      2   "$schema": "https://json-schema.org/draft/2020-12/schema",
      3   "type": "object",
      4   "properties": {
      5     "tree": { "$ref": "#/$defs/node" },
      6     "loop": { "$ref": "#/$defs/loop" }
      7   },
      8   "$defs": {
      9     "node": {
     10       "type": "object",
     11       "properties": {
     12         "value": { "type": "string" },
     13         "children": {
     14           "type": "array",
     15           "items": { "$ref": "#/$defs/node" }
     16         }
     17       },
     18       "required": ["value"]
     19     },
     20     "loop": {
     21       "type": "object",
     22       "properties": {
     23         "next": { "$ref": "#/$defs/loop" }
     24       }
     25     }
     26   }
     27 }