swagger编辑器中的多行字符串

问题描述

如果我将以下规范粘贴到editor.swagger.io中:

expected 'Search results for featured calc when logged out' 
to include 'Search results for featured calc when logged out'

描述在一行上呈现:

openapi: 3.0.0
info:
  title: Callback Example
  version: 1.0.0
paths:
  /streams:
    post:
      description: |
        first line
        second line
        third line
      responses:
        '201':
          description: subscription successfully created
          content:
            application/json:
              schema:
                description: subscription information
                required:
                  - subscriptionId
                properties:
                  subscriptionId:
                    description: this unique identifier allows management of the subscription
                    type: string
                    example: 2531329f-fb09-4ef7-887e-84e648214436

即使yaml规范指出,块样式字符串保留换行符:https://yaml-multiline.info/

如何在swagger编辑器中使用多行字符串?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)