odin-jsonschema

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

schema.json (399B)


      1 {
      2   "$schema": "https://json-schema.org/draft/2020-12/schema",
      3   "allOf": [
      4     { "$ref": "#/$defs/base" },
      5     {
      6       "type": "object",
      7       "properties": {
      8         "name": { "type": "string" }
      9       },
     10       "required": ["name"]
     11     }
     12   ],
     13   "$defs": {
     14     "base": {
     15       "type": "object",
     16       "properties": {
     17         "id": { "type": "integer" }
     18       },
     19       "required": ["id"]
     20     }
     21   }
     22 }