api-platform / api-platform/core
ApiProperty writableLink not taking into account when creating documentation
- Lingua principale
- PHP
- Stelle
- 2.6k
- Fork
- 980
- Merge medio
- 2g 4h
- PR unite (30g)
- 49
Descrizione
**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**
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.