Issue #3643170: Preserve field values when generating JSON:API schemas

Generating a field schema previously replaced existing values with sample data and could create files.

Use the typed data manager to create a representative empty item with the original field context, without appending to the list or generating samples.

Regression coverage checks:

  • Populated and empty title fields retain their values.
  • Image field schema generation preserves values and creates no additional file entities or public files.
  • Generated schemas remain valid against the meta-schema.

Validation:

  • Before the fix: both field-value preservation cases failed.
  • After the fix: 17 kernel tests passed with 327 assertions.

Merge request reports

Loading
Loading