Skip to content

anyOf: Better error when discriminator is identified but no alternatives match #94

@arpitkuriyal

Description

@arpitkuriyal

When a discriminator is detected, but none of the schema alternatives match, the error reporting should be more specific.

There is a skipped test case that covers this scenario, where a discriminator is present but none of the anyOf alternatives match.

Tasks:

  • Provide clearer error messages when no alternatives match.
  • Ensure behavior matches the expectations defined in the skipped test.

Goal:
Improve the clarity and usefulness of error messages for anyOf discriminator failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions