微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何解决yaml / swagger中的错误?

这是我的yaml架构的一部分:

paths: '/testing/all': get: summary: Get list of open items tags: - Items description: | Returns an array of json objects items responses: '200': description: Array of open items schema: type: array $ref: '#/deFinitions/itemList' default: description: Unexpected error schema: $ref: '#/deFinitions/Error'

我知道缩进,但在包含“回复”的行中仍然存在错误

YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 20,column 13: responses:

我如何解决这个错误,我正在使用webstorm 2016和Windows 7?

VeLocity引擎无法从远程共享文件夹加载模板

如何捕捉特殊的关键事件?

在Windows中通过命令行连接到远程MysqL服务器

PHP爆炸:脚本工作在Windows上,而不是在Debian上

在C#中使用TaskDialogIndirect

如何结合Tkinter的窗户?

在“等待初始通信数据包”时丢失与MysqL服务器的连接

如何在Windows下在Mono上构buildprotobuf-csharp-port

我如何等待asynchronous完成?

如何枚举和删除Windows事件?

default:行default:有一个无效的缩进:

'200': ------------/ 14 spaces [...] default: --------------/ 16 spaces

块映射中每个隐式键的缩进必须与其他键的缩进相匹配。

错误消息指出responses:行有错误,但是那个实际上是有效的YAML。如果在解决我解释的错误时消息没有消失,这可能是您使用的YAML实现的错误你应该报告它。)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐