**API Platform version(s) affected**: since 4.2. **Description** The schema currently defines some anyOf as an object instead of an array, which is invalid. **How to reproduce** Reproduce an Entity with this type of fields : <img width="365" height="565" alt="Image" src="https://github.com/user-attachments/assets/18faf61b-1c20-49a3-a6a2-ff785443cec0" /> **Additional Context** I use docker run --rm -it -v $(pwd):/tmp stoplight/spectral:6 lint /tmp/openapi.yaml to automatically check my specification.