我想在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