Skip to content

Fail search with an error on unknown search parameters #243

@acfo

Description

@acfo

We have a use case where we would like to fail a search with an error if an unknown search parameter was passed to a GET or POST endpoint. Is there a way to hook into the arg resolver to throw an exception if unsupported search parameters are in the request?

Neither the annotation @JsonIgnoreProperties(ignoreUnknown = false) nor the global setting spring.jackson.deserialization.fail-on-unknown-properties=true seem to work for json bodies.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions