Within a post API, I have following array specifications
{
"name": "Phone",
"in": "formData",
"description": "List of Phone object",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/postedPhone"
}
}
}
],
But this gives an error, this error is misleading for sure but I don't know
what the issue is here. I have declared postedPhone definition in the
editor as well. If I change above to "items": {
"type": "string"
} it works... Is there any issue with posting formData
as an array in swagger 2.0?
Errors I got
Schema error at paths['/{XXX}/update'].post.parameters[14]should NOT have
additional properties additionalProperty: schema, name, in, description
Jump to line 111
Schema error at paths['/{XXX}/update'].post.parameters[14].inshould be
equal to one of the allowed values allowedValues: body, header, query, path
Jump to line 113
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.