Skip to content

Fail cleanly when submitted node data misses the discriminator field #32

@javihgil

Description

@javihgil

Problem

When submitted node data does not contain the discriminator field, the component currently reaches undefined array access and then fails with low-level errors.

Current behavior

A malformed or incomplete submitted node can trigger PHP warnings or generic runtime failures instead of one clear form-related exception.

Expected behavior

Submitted node data should be validated early and fail with a clean, domain-specific exception that explains that the discriminator field is required.

Why it matters

This component is used in dynamic editors and CMS flows, where partial or malformed frontend payloads are realistic and should fail in a predictable way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions