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
I noted that from some moment, all properties for certain schemas were marked as Deprecated.
I found the reason. Before the Schema description, I also have some class annotations. Within these annotations, one of the class properties is marked as @deprecated. In this case, all properties in the Schema after doc generation are marked as deprecated.
/**
* @property int $id
* ...
* @property int $general_id @deprecated
* ...
*/
#[OA\Schema(
schema: 'Client',
title: 'Client',
description: 'Client',
properties: [
new OA\Property(property: 'id', description: 'ID', type: 'integer'),
...
]
)]
class ClientRecord {
...
For now, as a temporary decision, I marked all properties as deprecated: false.
new OA\Property(property: 'id', description: 'ID', type: 'integer', deprecated: false),
The text was updated successfully, but these errors were encountered:
antonrinas
changed the title
All properties for all schema became Deprecated
All properties for all schemas became Deprecated
Jun 19, 2024
I noted that from some moment, all properties for certain schemas were marked as Deprecated.
I found the reason. Before the Schema description, I also have some class annotations. Within these annotations, one of the class properties is marked as @deprecated. In this case, all properties in the Schema after doc generation are marked as deprecated.
For now, as a temporary decision, I marked all properties as deprecated: false.
The text was updated successfully, but these errors were encountered: