【发布时间】:2021-09-19 16:34:31
【问题描述】:
在 Postman 中创建 API 时出现以下错误:“数据类型无效。必须是数组、布尔值、整数、数字、对象或字符串中的任何一个”
将"type": "file" 转换为"type": "object" 时,错误已修复,但我不确定是否有适合这种情况的方法。因为这次更新后,在 Postman 中发送请求时,请求可能无法通过。
"parameters": [
{
"in": "body",
"name": "file",
"description": "file",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "file"
}
}
},
...
]
那么,我该如何解决 Postman 中的问题?
【问题讨论】:
标签: swagger postman openapi postman-collection-runner postman-pre-request-script