title: Why are my array objects are of type "type": ["object","null"] when generating a JsonSchema
body: <p>So, I have a class defined as such...</p>
  
  <pre><code>public class foo
  {
      public List&lt;bar&gt; Bars {get;set;}
  }
  
  public class bar
  {
      public string foorbar {get;set;}
  }
  </code></pre>
  
  <p>When I use the <code>JsonSchemaGenerator</code> to generate its schema I get the following output...</p>
  
  <pre><code>var generator = new JsonSchemaGenerator();
  return generator.Generate(typeof(foo), false);
  
  {
    "type": "object",
    "properties" : {
        "Bars":{
            "type": "array",
            "items": {
                "type": ["object","null"],
                "properties": { 
                    "foorbar":{"type":"string"} 
                }
            }
        }
     }
  }
  </code></pre>
  
  <p>So, why are my items inside the array of type <strong><code>"type": ["object","null"]</code></strong></p>
  
  <p>I believe this is causing issues, how can I remove the nullable object type here?</p>
  
  <p>Thanks</p>