{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "schema with definition",
  "type": "object",
  "properties": {
    "a": {
      "$ref": "#/definitions/foo"
    }
  },
  "definitions": {
    "foo": {
      "type": "integer"
    }
  }
}
