{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://json-schema.org/draft-07/schema#",
  "title": "Core schema meta-schema",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "object"
    },
    "additionalProperties": {
      "type": "boolean"
    },
    "required": {
      "type": "array",
      "minItems": 0,
      "maxItems": 2,
      "items": {
        "type": "string",
        "enum": [
          "foo",
          "bar"
        ]
      }
    },
    "properties": {
      "type": "object",
      "properties": {
        "foo": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "string"
            }
          },
          "required": [ "type" ]
        },
        "bar": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "integer"
            }
          },
          "required": [ "type" ]
        }
      }
    }
  },
  "required": [ "properties", "required", "type" ]
}
