Just learning to use attributes to describe function parameters and responses. I’m trying to describe a response object that returns an array of objects, but so far not a lot of luck using an array, this is what I have now, it returns an object, I would like it to be an array of objects:
#[OAResponse(
response: 201,
description: "Get the list",
content: new OAJsonContent(
properties: [
new OAProperty(
property: "property name 1",
type: "string",
example: "value 1"
),
new OAProperty(
property: "property name 2",
type: "string",
example: "value 2"
)
],
type: 'object'
)
)]
Any guidance would be greatly appreciated!