我想定义这个
"locationPoly": [
[-87.63466, 24.50182],
[-80.03074, 24.50182],
[-80.03074, 31.00107],
[-87.63466, 31.00107],
[-87.63466, 24.50182]
],
在我的 OpenAPI YAML 架构中,我将其定义如下:
locationPoly:
type: array
properties:
type: array
properties:
type: number
但我收到“架构无效”错误。还有另一种方法来定义这个吗?
数组必须使用items
关键词。
locationPoly:
type: array
items:
type: array
items:
type: number
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)