title: Disabling null type in Newtonsoft JSON.NET schema
body: <p>I have an MVC application, that serializes my model into json schema (using Newtonsoft json.net schema). The problem is that items in my array have type <code>["string", "null"]</code>, but what I need is just <code>"string"</code>. Here is code for my class:</p>
  
  <pre><code>public class Form
  {
      [Required()]
      public string[] someStrings { get; set; }
  }
  </code></pre>
  
  <p>This is schema made by Json.net schema: </p>
  
  <pre><code>"someStrings": {
    "type": "array",
    "items": {
      "type": [
        "string",
        "null"
      ]
    }
  }
  </code></pre>
  
  <p>While I am expecting this: </p>
  
  <pre><code>"someStrings": {
    "type": "array",
    "items": {
      "type": "string"        
    }
  }
  </code></pre>
  
  <p>Help me get rid of that "null" please.</p>