Swagger-ui锚链接到模型定义

use*_*275 5 javascript anchor swagger swagger-ui

是否可以直接通过锚点通过swagger-ui访问模型定义?

在示例页面http://petstore.swagger.io/中,我看到锚适用于一组端点,例如 http://petstore.swagger.io/#/pet

将鼠标悬停在模型描述上会显示一个锚点(例如,#/definitions/Category用于Category模型),但是 http://petstore.swagger.io/#/definitions/Category不能将我带到那里。

如果检查元素,则会看到一个真正的锚链接pet

<a class="nostyle" href="#/pet"><span>pet</span></a>

Category这是一个模型提示

<span class="model-hint">#/definitions/Category</span>

所以我想知道是否完全支持锚定模型。

Hel*_*len 3

Swagger UI 不支持架构/模型的永久链接。有一个现有的功能请求:
https ://github.com/swagger-api/swagger-ui/issues/1369