Renamed structured content keys are not removed from EDS JSON response
Issue
EDS structured content currently retains the old key when a field key is renamed.
Steps to Reproduce:
- Create a structured content field with key
employeeCommsManifest.
- Rename the key to
employeeCommsConfig.
- Publish/update the content.
- Inspect the JSON response.
Current Behavior
The JSON response contains both:
{
"employeeCommsManifest": { ... },
"employeeCommsConfig": { ... }
}
The old key employeeCommsManifest remains in the response even after the rename.
Expected Behavior
When a key is renamed, the old key should be removed from the generated JSON response. Only the new key should be present.
{
"employeeCommsConfig": { ... }
}
Renamed structured content keys are not removed from EDS JSON response
Issue
EDS structured content currently retains the old key when a field key is renamed.
Steps to Reproduce:
employeeCommsManifest.employeeCommsConfig.Current Behavior
The JSON response contains both:
The old key
employeeCommsManifestremains in the response even after the rename.Expected Behavior
When a key is renamed, the old key should be removed from the generated JSON response. Only the new key should be present.