title: Swashbuckle for Azure Functions v3: failed to load API definition
body: <p>I created a simple project where I added the latest version of the extension. I published my code on <a href="https://github.com/erossini/AzureFunctionsSwashbuckle" rel="nofollow noreferrer">Github</a>. I use Azure Functions v3. The dependencies are: </p>
  
  <ul>
  <li>AzureExtensions.Swashbuckle 3.1.6</li>
  <li>AzureFunctions.Extensions.Swashbuckle 1.4.4</li>
  <li>Microsoft.NET.Sdk.Functions 3.0.3</li>
  </ul>
  
  <p>I followed the steps on theSwashbuckle <a href="https://github.com/yuka1984/azure-functions-extensions-swashbuckle" rel="nofollow noreferrer">page</a>. Locally is working. When I publish the function on Azure, I get this error:</p>
  
  <p><a href="https://i.stack.imgur.com/I7R2a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I7R2a.png" alt="enter image description here"></a></p>
  
  <pre><code>{
    "schemaValidationMessages": [
      {
        "level": "error",
        "message": "Can't read from file https://azuks-test-q001.azurewebsites.net/api/swagger/json"
      }
    ]
  }
  </code></pre>
  
  <p>Before this, I faced another issue that I asked <a href="https://stackoverflow.com/questions/61734672/swashbuckle-for-azure-functions-no-api-definition-provided-when-it-runs-on-azur">here</a>. I can't understand what changed.</p>
  
  <h2>Update</h2>
  
  <p>For same reason, the code param can't be the same for <code>json</code> and <code>UI</code>. If you open your Swagger url with <strong>Get Function url</strong> and copy the url from UI function, it is working.</p>
  
  <p><a href="https://i.stack.imgur.com/1WXlz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1WXlz.png" alt="enter image description here"></a></p>