Skip to content

Test does not fail if a field's manually-specified type doesn't match the actual type #276

@wilkinsona

Description

@wilkinsona

If a field descriptor is explicitly configured with a JsonFieldType and it doesn't match the actual type that can be determined by examining the payload no failure occurs. Arguably, a user should only specify a type for an optional field that isn't present in the payload, i.e. when REST Docs needs some help, but we should still fail when the field is there and it doesn't match the explicitly configured type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions