title: Monaco editor default json uri schema
body: <p>I'm using monaco editor to edit JSON and I would like to set a custom diagnostic option.
  I'm trying that <a href="https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-json-defaults" rel="noreferrer">https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-json-defaults</a></p>
  <pre><code>// Configures two JSON schemas, with references.
  
  var jsonCode = [
      '{',
      '    &quot;p1&quot;: &quot;v3&quot;,',
      '    &quot;p2&quot;: false',
      &quot;}&quot;
  ].join('\n');
  var modelUri = monaco.Uri.parse(&quot;a://b/foo.json&quot;); // a made up unique URI for our model
  var model = monaco.editor.createModel(jsonCode, &quot;json&quot;, modelUri);
  
  // configure the JSON language support with schemas and schema associations
  monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
      validate: true,
      schemas: [{
          uri: &quot;http://myserver/foo-schema.json&quot;, // id of the first schema
          fileMatch: [modelUri.toString()], // associate with our model
          schema: {
              type: &quot;object&quot;,
              properties: {
                  p1: {
                      enum: [&quot;v1&quot;, &quot;v2&quot;]
                  },
                  p2: {
                      $ref: &quot;http://myserver/bar-schema.json&quot; // reference the second schema
                  }
              }
          }
      }, {
          uri: &quot;http://myserver/bar-schema.json&quot;, // id of the second schema
          schema: {
              type: &quot;object&quot;,
              properties: {
                  q1: {
                      enum: [&quot;x1&quot;, &quot;x2&quot;]
                  }
              }
          }
      }]
  });
  
  monaco.editor.create(document.getElementById(&quot;container&quot;), {
      model: model
  });
  </code></pre>
  <p>Where does <code>uri: &quot;http://myserver/foo-schema.json&quot;</code> come from ? I just want to use default JSON schema. Not my own.</p>
  <p>Setting uri like this works :
  <code>uri: &quot;http://localhost:4200/assets/monaco-editor/min/vs/language/json/jsonMode.js&quot;,</code></p>
  <p>But is there a clean way to set this value ? Maybe uri value for JSON is available somewhere ? I searched through monaco.languages.json.jsonDefaults but I did not find anything.</p>