{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "required": [
    "inner"
  ],
  "properties": {
    "inner": {
      "required": [
        "foo"
      ],
      "properties": {
        "foo": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "definitions": {
    "Inner": {
      "required": [
        "foo"
      ],
      "properties": {
        "foo": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  }
}