Description
In CDS 10 the odata_metadata_compat compat flag is removed. Projects that had set cds.features.odata_metadata_compat: true to keep the legacy OData $metadata output format will now always receive the current metadata representation. The flag has no effect when set and must be removed. The shape of $metadata responses may differ from what consuming Fiori UIs, third-party clients, or snapshot tests expect.
How to Check
- [ ] Search for
cds.features.odata_metadata_compatinpackage.json,.cdsrc.json, and environment-specific config files. - [ ] If the flag is set to
true, retrieve the$metadatadocument for all exposed OData services and compare it against the version produced with the flag removed. - [ ] Check snapshot tests or stored
$metadatafixtures for hardcoded legacy structures.
Migration Steps
Remove the flag from CDS configuration:
diff// package.json or .cdsrc.json "cds": { "features": { - "odata_metadata_compat": true } }Fetch
$metadatafrom all affected OData endpoints and review the diff against previous snapshots. Update snapshot tests and any client-side metadata parsing code as required.