是否可以通过锚点直接从swagger-ui访问模型定义?
在示例页面http://petstore.swagger.io/中,我看到锚点适用于一组端点,例如 http://petstore.swagger.io/#/pet。
将鼠标悬停在模型描述上会显示一个锚点 (例如Category
模型的#/definitions/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>
所以我想知道是否支持模型定位。