Skip to content

[dasc] Renamed structured content keys are not removed from EDS JSON response #517

Description

@kozmaadrian

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": { ... }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    dascUsed by DA Structured Content

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions