docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Bug] Swagger basePath is not rendered in the generated html

Open daniecas opened this issue 8 months ago • 2 comments

Describe the bug Even if you set basePath in the Swagger file the path is not rendered in the Html file generated.

To Reproduce Steps to reproduce the behavior:

  1. clone https://github.com/docascode/docfx-seed/tree/master
  2. the following file contain "basePath": "/myorganization" --> https://github.com/docascode/docfx-seed/blob/master/restapi/contacts_swagger2.json)
  3. the result is no text with "/myorganization" in the html generated --> https://docascode.github.io/docfx-seed/restapi/contacts.html

Expected behavior Without the base path the api path showed is wrong , so I think it's important to show the basePath on the top of the html generated

Context:

  • OS: Windows
  • Docfx version: 2.76.0

Additional context I tried it with 2 different template (modern and default).

daniecas avatar Jun 12 '24 15:06 daniecas