title: JSON Schema Validation Failing ... "The property did not contain a required property"
body: <p>Below is a partial version of my json schema. I currently am using the <code>json-schema</code> Gem to validate the following (partial) schema:</p>
  
  <pre><code>{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
      "botSettings": {
        "type": "object",
        "properties": {
          "welcomeMessage": {
            "type": "object",
            "required": ["body"],
            "properties": {
              "title": { "type": "string" },
              "body": { "type": "string" },
              "image": { "#ref": "#/definitions/image" }
            }
          },
          "invalidCommandMessage": { "type": "string" }
        }
      }
    }
  }
  </code></pre>
  
  <p>against the following (partial) json:</p>
  
  <pre><code>{
    "botSettings": {
      "welcomeMessage": {
        "title": "Welcome to the bot",
        "body": "This is the body right here"
      }
    }
  }
  </code></pre>
  
  <p>When validating in strict mode, it states "The property '#/botSettings/welcomeMessage' did not contain a required property of 'image'", however I only have required set to "body". So what am I missing here? </p>