api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.45k stars 875 forks source link

Migration to 3.2.5: the response structure has changed #5987

Closed ecourtial closed 11 months ago

ecourtial commented 11 months ago

API Platform version(s) affected: 3.2.5

Description
Migrated from 3.2.4 to 3.2.5. Now some responses structure have changed (see screenshots below). The given example is a simple attribute validation. Request in basic JSON.

With 3.2.4

before

With 3.2.5

after

soyuka commented 11 months ago

damn, what's your configuration (please send your formats)? Also environment is dev?

Use this for backward compatibility with 3.1:

api_platform:
    defaults:
        extra_properties:
            rfc_7807_compliant_errors: false

see also #5963

ecourtial commented 11 months ago

I just updated to 3.2.6... and it's fine now! I close.

soyuka commented 11 months ago

you just made my day thanks!