api-platform / api-platform/core

ApiProperty writableLink not taking into account when creating documentation

オープン
#8,027 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Serializer
主要言語
PHP
スター
2.6k
フォーク
980
平均マージ
2日 4時間
マージ済み PR(30日)
49

説明

**API Platform version(s) affected**: 2.6.5

**Description**

ApiProperty writableLink not taking into account in documentation for example value. For example i have
`ApiProperty(readableLink: true, writableLink: false, fetchEager: true)` on a property. But when the documentation is displayed the property is also expanded in post and patch requested body it should be only expanded in get operations.
**How to reproduce**

for example:

```php
/**
* User who made the entry or entry is assign to.
*/
#[
ORM\ManyToOne(targetEntity: User::class),
ApiProperty(readableLink: true, writableLink: false, fetchEager: true)
]
private ?User $user = null;
```

**Possible Solution**

**Additional Context**

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。