未显示Swagger 3.0

时间:2018-01-16 03:18:55

标签: swagger swagger-editor

我已经在swagger编辑器中指定了我的id的数据类型哪个整数但它不会在localhost服务器中显示它。是3.0问题吗?因为2.0似乎正在显示!

Here is a screenshot!

'/pets/{id}':
    get:
      description: >-
        Returns a user based on a single ID, if the user does not have access to
        the pet
      operationId: find pet by id
      parameters:
        - name: id
          in: path
          description: ID of pet to fetch
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: pet response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pet'
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'

0 个答案:

没有答案