【发布时间】:2021-06-17 05:24:18
【问题描述】:
在 Azure API 管理中,CustomerId 被指定为具有整数示例值的 整数:
openapi: 3.0.1
components:
schemas:
Customer:
type: object
properties:
CustomerId:
type: integer
format: int64
example: 100000
保存后变为包含小数点分隔符的字符串:
示例:'100000.0'
openapi: 3.0.1
components:
schemas:
Customer:
type: object
properties:
CustomerId:
type: integer
format: int64
example: '100000.0'
如何指定整数示例值?
【问题讨论】:
标签: openapi azure-api-management