Skip to content

Diagnostics are poor when a wildcard is used with beneathPath and the identified field doesn't exist everywhere in the payload #715

@wilkinsona

Description

@wilkinsona

See #714 for some background. When a field path containing a wildcard is used with beneathPath and the field doesn't exist everywhere in the payload, the resulting error message is the following:

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.lang.Object and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)

An error explaining that the identified sections of the payload do not have a common structure should be thrown instead.

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