【发布时间】:2015-08-04 23:01:31
【问题描述】:
我创建了一个扩展来使 Flask-Views Swaggable,这很简单,你将一些 YAML 定义放在某个文件或文档字符串中,Flasgger 负责创建 API 规范并公开 Swagger UI。
Github:https://github.com/rochacbruno/flasgger
示例APP:http://flasgger-rochacbruno.rhcloud.com/apidocs/index.html?url=/v2/spec
现在我遇到了一个问题:
http://online.swagger.io/validator/debug?url=http://flasgger-rochacbruno.rhcloud.com/v2/spec
swagger 验证器说我的规范无效,但一切正常,为什么会说我的定义无效?
Anwers 可以作为对 github 存储库的贡献(该示例应用程序就在那里)
【问题讨论】:
标签: python flask yaml swagger swagger-ui