Skip to content

[EDM] Template - Exclude Auto-Generated Fields from REST Validation and UI Creation Flow #5869

@ThuF

Description

@ThuF

Goal

Improve the usability of EDM-generated applications by preventing confusion around auto-generated fields during entity creation and API usage.

Scope

  • In Scope
    • Hide auto-generated fields (e.g. IDs, timestamps, system-managed values) from the “Creation” UI in EDM-generated applications.
    • Exclude these fields from mandatory validation in REST API requests during entity creation.

Description

Currently, EDM Templates generate UI and REST APIs that include auto-generated fields in the “Creation” flow. These fields are not editable by users, yet they appear in the UI and are part of validation rules in the REST API.
This leads to:

  • Confusion in the UI, as users see fields they cannot modify.
  • Validation errors in REST API requests, since users are expected to provide values for fields they cannot control.

The expected behavior is that auto-generated fields should be:

  • Hidden in the “Creation” UI.
  • Excluded from required validation in REST API create operations.

Acceptance Criteria

  • Auto-generated fields are not visible in the “Creation” UI for EDM-generated applications.
  • Auto-generated fields are not required in REST API payloads during entity creation.
  • REST API create operations succeed without providing values for auto-generated fields.
  • No regression in update/edit scenarios where such fields may be displayed as read-only (if applicable).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions