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