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: ^
問題が最後にある Windows スタイルの改行であることを示す JS-YAML のバグが見られます。これは、HTML テキストエリアが作成できることがわかっています。YAML を本格的に使うのはこれが初めてなので、何か間違ったことをしているだけなのか、それとも Swagger エディターのバグなのか?