json_schema: {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "definitions": {
          "pets": {
              "type": "object",
              "properties": {
                  "dog": {
                      "type": "string"
                  },
                  "cat": {
                      "type": "string"
                  }
              },
              "required": [
                  "dog",
                  "cat"
              ]
          },
          "morePets": {
              "$ref": "#/definitions/pets"
          }
      },
      "properties": {
          "pets": {
              "$ref": "#/definitions/pets"
          },
          "morePets": {
              "$ref": "#/definitions/morePets"
          }
      },
      "required": [
          "pets",
          "morePets"
      ]
  }