You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm in the middle of transforming my old API to the API Platform one.
One thing I noticed is that when changing OpenAPI attributes to Api Platform attributes I can no longer use item references as class names or generally OpenAPI/Nelmio Model objects deeper under openapiContext property.
Am I missing something to make it work properly or is this feature not implemented yet?
Example
My old attribute:
useOpenApi\AttributesasOA;
useNelmio\ApiDocBundle\Annotation\Model;
#[OA\Property(
description: 'the list of order items',
type: 'array',
items: newOA\Items(
ref: newModel(type: OrderItem::class),
)
)]
public array $items;
The new one:
#[ApiProperty(
description: 'the list of order items',
openapiContext: [
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/OrderItem'
],
],
)]
public array $items;
The text was updated successfully, but these errors were encountered:
Description
Hello! I'm in the middle of transforming my old API to the API Platform one.
One thing I noticed is that when changing OpenAPI attributes to Api Platform attributes I can no longer use item references as class names or generally OpenAPI/Nelmio Model objects deeper under openapiContext property.
Am I missing something to make it work properly or is this feature not implemented yet?
Example
My old attribute:
The new one:
The text was updated successfully, but these errors were encountered: