api-platform / api-platform/core
ApiProperty writableLink not taking into account when creating documentation
- Vorherrschende Sprache
- PHP
- Sterne
- 2.6k
- Forks
- 980
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 51
Beschreibung
**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**
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.