I have a REST services to document, some of them accepts simple array like:
[
{ \"name\":\"a\" },
{ \"name\":\"b\" },
{ \"name\":\"c\" }
]
Considering the format of the array you mentioned
[
{ "name":"a" },
{ "name":"b" },
{ "name":"c" }
]
I guess the following format can be used:
paths:
/test:
post:
description: Test request
operationId: test
parameters:
- in: body
name: requestParameter
required: true
schema:
type: array
items:
properties:
name:
type: string
responses:
'200':
description: Success response