나는 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에 대한 버그를 참조 결국 HTML 텍스트 영역이 만들 수있는 Windows 스타일의 새 줄. 내가 YAML을 많이 사용하는 것은 이번이 처음입니다. 그래서 저 자신이 잘못되었거나 Swagger 편집자의 버그입니까?
좋은 공연 ... 고마워! 그 세부 사항은 YAML 스펙에서 전혀 명확하지 않습니다. – fool4jesus