我想在Swagger编辑器中获得多行文字(顺便说一下,真棒工具!)。在swagger编辑器中的多行文字?
post:
summary: Translate one or more identifiers
description: |
Translate one or more identifiers for one entity into the
identifiers of another entity. Translate one or more
identifiers for one entity into the identifiers of another entity.
consumes:
- application/json
我试过用|和>,用不同的结局(增加缩进与空行),并且每路我能想到的,但它总是给人同样的错误:
YAML Syntax Error
Can not read a block mapping entry; a multiline key may not be an implicit
key at line 24, column 15: consumes:^
我看到JS-YAML错误指示问题最后是一个Windows风格的换行符,我知道HTML textareas可以创建它。这是我第一次真正使用YAML,那么这只是我做错了什么,或者是Swagger编辑器中的错误?
很好的表演......谢谢!这个细节在YAML规范中并不完全清楚。 – fool4jesus 2015-01-27 19:06:30