-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Description
API Platform version(s) affected: 3.1.0
Description
With this new version, it seems impossible to change the request body description or content.
How to reproduce
Define an ApiResource with a Post operation like this
new Metadata\Post(
routeName: 'api_multiple',
openapi: new Model\Operation(
requestBody: new Model\RequestBody(
content: new \ArrayObject([
'application/json' => [
'schema' => [
'type' => 'object',
'properties' => [
'ids' => [
'type' => 'array',
'items' => ['type' => 'string'],
'example' => ['1e677e04-d461-4389-bedc-6d1b665cc9d6', '01111b43-f53a-4d50-8639-148850e5da19'],
],
],
],
],
]),
),
),
),
But on my swagger documentation, the request body is unchanged and it is the default one still
Additional Context
I'm using Symfony 6.2.5, everything work as expected so far
Metadata
Metadata
Assignees
Labels
No labels