inheritance.schema.json 530 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
{
  "type": "object",
  "additionalProperties": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "inherits": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "type": "string",
            "minLength": 1
          }
        ]
      },
      "implements": {
        "minItems": 0,
        "uniqueItems": true,
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "inherits",
      "implements"
    ]
  }
}