I am attempting to upload an API schema to use with API Shield, but I am getting an error:
{
"code": 21400,
"message": "array parameter type is only supported when both explode=true and style=form (.paths[\"/answers/{ids}\"].get.parameters[0])"
}
If I try providing explode
and style
I get:
{
"code": 21400,
"message": "only default parameter styles are supported: path, form (.paths[\"/answers/{ids}\"].get.parameters[0])"
}
The portion of the schema it’s complaining about looks like:
"parameters": [
{
"name": "ids",
"schema":
{
"type": "array",
"items":
{
"type": "integer"
}
},
"required": true,
"description": "comma-separated list of Answer ids",
"in": "path"
},
which validates without errors in https://editor.swagger.io/
The path parameters I need to support look like:
/answers/1,2,3
How do I properly support this?