title: JSONSchema draft v3 validation error
body: <p>I have created a JSON schema following the draft v3 specifications. The schema looks like this:</p>
  <pre><code>{
  &quot;housePolicies&quot;: {
      &quot;properties&quot;: {
          &quot;guaranteePolicies&quot;: {
              &quot;items&quot;: {
                  &quot;$ref&quot;: &quot;#/housePolicies/guaranteePolicy&quot;
              },
              &quot;type&quot;: &quot;array&quot;
          },
          &quot;specialRequirements&quot;: {
              &quot;items&quot;: {
                  &quot;$ref&quot;: &quot;#/housePolicies/specialRequirement&quot;
              },
              &quot;type&quot;: &quot;array&quot;
          },
          &quot;chainCode&quot;: {
              &quot;required&quot;: true,
              &quot;type&quot;: &quot;string&quot;,
              &quot;description&quot;: &quot;Unique identifier of the chain&quot;
          },
          &quot;losRestrictions&quot;: {
              &quot;items&quot;: {
                  &quot;$ref&quot;: &quot;#/housePolicies/losRestriction&quot;
              },
              &quot;type&quot;: &quot;array&quot;
          },
          &quot;specialEvents&quot;: {
              &quot;items&quot;: {
                  &quot;$ref&quot;: &quot;#/housePolicies/specialEvent&quot;
              },
              &quot;type&quot;: &quot;array&quot;
          },
          &quot;propertyCode&quot;: {
              &quot;required&quot;: true,
              &quot;type&quot;: &quot;string&quot;,
              &quot;description&quot;: &quot;Unique identifier of the property in the chain&quot;
          }
      },
      &quot;specialRequirement&quot;: {
          &quot;id&quot;: &quot;specialRequirement&quot;,
          &quot;properties&quot;: {
              &quot;minLOS&quot;: {
                  &quot;type&quot;: &quot;integer&quot;,
                  &quot;description&quot;: &quot;Minimum stay, in days, that applies for a special requirement restriction.\nOptional: If no input provided, there is no minimum LOS required for that period.&quot;,
                  &quot;format&quot;: &quot;int64&quot;
              },
              &quot;startDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a special requirement restriction starts&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;endDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a special requirement restriction ends&quot;,
                  &quot;format&quot;: &quot;date&quot;
              }
          }
      },
      &quot;guaranteePolicy&quot;: {
          &quot;dow&quot;: {
              &quot;id&quot;: &quot;dow&quot;,
              &quot;properties&quot;: {
                  &quot;monday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;tuesday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;friday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;wednesday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;thursday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;sunday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  },
                  &quot;saturday&quot;: {
                      &quot;required&quot;: true,
                      &quot;type&quot;: &quot;boolean&quot;
                  }
              }
          },
          &quot;id&quot;: &quot;guaranteePolicy&quot;,
          &quot;properties&quot;: {
              &quot;startDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a guarantee policy starts&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;endDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a guarantee policy ends&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;guaranteeRequiredDow&quot;: {
                  &quot;items&quot;: {
                      &quot;$ref&quot;: &quot;#/housePolicies/guaranteePolicy/dow&quot;
                  },
                  &quot;required&quot;: true
              }
          }
      },
      &quot;losRestriction&quot;: {
          &quot;id&quot;: &quot;losRestriction&quot;,
          &quot;properties&quot;: {
              &quot;startDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a length of stay restriction starts&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;max&quot;: {
                  &quot;type&quot;: &quot;integer&quot;,
                  &quot;description&quot;: &quot;In case max is not provided it measn that there is no maximum length of stay restrictions.\nOptional: If no input provided, there is no maximum length restriction.&quot;,
                  &quot;format&quot;: &quot;int64&quot;
              },
              &quot;endDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a length of stay restriction ends&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;min&quot;: {
                  &quot;type&quot;: &quot;integer&quot;,
                  &quot;description&quot;: &quot;In case min is not provided it means that there is no minimum length of stay restrictions.\nOptional: If no input provided, there is no minimum length restriction.&quot;,
                  &quot;format&quot;: &quot;int64&quot;
              }
          }
      },
      &quot;specialEvent&quot;: {
          &quot;id&quot;: &quot;specialEvent&quot;,
          &quot;properties&quot;: {
              &quot;startDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a special event restriction starts&quot;,
                  &quot;format&quot;: &quot;date&quot;
              },
              &quot;endDate&quot;: {
                  &quot;required&quot;: true,
                  &quot;type&quot;: &quot;string&quot;,
                  &quot;description&quot;: &quot;Date when a special event restriction ends&quot;,
                  &quot;format&quot;: &quot;date&quot;
              }
          }
      },
      &quot;id&quot;: &quot;housePolicies&quot;
  },
  &quot;$schema&quot;: &quot;http://json-schema.org/draft-03/schema#&quot;,
  &quot;id&quot;: &quot;request&quot;,
  &quot;properties&quot;: {
      &quot;housePolicies&quot;: {
          &quot;items&quot;: {
              &quot;$ref&quot;: &quot;#/housePolicies&quot;
          },
          &quot;required&quot;: true
      }
  }
  }
  </code></pre>
  <p>I am now trying to validate some JSON against it, but <a href="http://www.jsonschemavalidator.net/" rel="nofollow noreferrer">jsonschemavalidator</a> complains about the schema, giving error when resolving schema reference '#/housePolicies/guaranteePolicy/dow'. I verified in the <a href="https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-03#section-6.2.1" rel="nofollow noreferrer">documentation</a> that the references are put in the proper format. Could anyone point where is the error in this schema?</p>