title: I cant seem to understand why my object is invalid for my json schema attached
body: <p>I have the following schema, that imports a schema with ref and I'm using elixir to resolve and send the requests and I'm ExJsonSchema to validate the objects I send.</p>
  <p>The problem is my schema for columns seems incorrect but I cant work out why.</p>
  <pre><code>{
      &quot;$schema&quot;: &quot;http://json-schema.org/draft-07/schema#&quot;,
      &quot;description&quot;: &quot;Comment describing your JSON Schema&quot;,
      &quot;type&quot;: &quot;object&quot;,
      &quot;properties&quot;: {
          &quot;action&quot;: {
              &quot;description&quot;: &quot;The action you wish to perform&quot;,
              &quot;type&quot;: &quot;string&quot;,
              &quot;enum&quot;: [
                  &quot;create&quot;,
                  &quot;read&quot;,
                  &quot;update&quot;,
                  &quot;delete&quot;
              ]
          },
          &quot;id&quot;: {
              &quot;description&quot;: &quot;The id of the object on which you woud like to perform the action&quot;,
              &quot;type&quot;: &quot;string&quot;
          },
          &quot;body&quot;: {
              &quot;type&quot;: &quot;object&quot;,
              &quot;oneOf&quot;: [
                  {
                      &quot;$ref&quot;: &quot;lib/schemas/table.schema.json&quot;
                  },
                  {
                      &quot;$ref&quot;: &quot;lib/schemas/incident.schema.json&quot;
                  }
              ]
          }
      },
      &quot;required&quot;: [
          &quot;body&quot;
      ]
  }
  </code></pre>
  <p>And it refs another schema</p>
  <pre><code>{
      &quot;$schema&quot;: &quot;http://json-schema.org/draft-07/schema#&quot;,
      &quot;description&quot;: &quot;Comment describing your JSON Schema&quot;,
      &quot;type&quot;: &quot;object&quot;,
      &quot;properties&quot;: {
          &quot;name&quot;: {
              &quot;type&quot;: &quot;string&quot;,
              &quot;minLength&quot;: 3,
              &quot;maxLength&quot;: 64
          },
          &quot;required&quot;: {
              &quot;type&quot;: &quot;boolean&quot;
          }
      },
      &quot;required&quot;: [
          &quot;name&quot;
      ],
      &quot;additionalProperties&quot;: false,
      &quot;anyOf&quot;: [{
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^varchar$&quot;
                  },
                  &quot;maxLength&quot;: {
                      &quot;type&quot;: &quot;number&quot;,
                      &quot;minimum&quot;: 3,
                      &quot;maximum&quot;: 64
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^smallint$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^integer$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^bigint$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^decimal$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^numeric$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^real$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^double precision$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^serial$&quot;
                  }
              }
          },
          {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;type&quot;: {
                      &quot;type&quot;: &quot;string&quot;,
                      &quot;pattern&quot;: &quot;^bigserial$&quot;
                  }
              }
          }
      ]
  }
  </code></pre>
  <p>And I have the following object:</p>
  <pre><code>{
      &quot;action&quot;: &quot;create&quot;,
      &quot;body&quot;: {
          &quot;name&quot;: &quot;incident&quot;, 
          &quot;parent&quot;: &quot;e5cb0b35-7b30-4613-83f9-31f5d7007b12&quot;,
          &quot;schema&quot;: [ 
              {
                  &quot;name&quot;: &quot;name&quot;,
                  &quot;type&quot;: &quot;varchar&quot;,
                  &quot;maxLength&quot;: 64,
                  &quot;required&quot;: true
              },
              {
                  &quot;name&quot;: &quot;stuff&quot;,
                  &quot;type&quot;: &quot;smallint&quot;
              }
          ]
                  
      }
  }
  </code></pre>
  <p>However, I see that I get an error that the object doesn't match any of the provided schemas</p>