I have a requirement to mark certain properties in my REST beans as ignored using @JsonIgnore. (I am using Spring Boot). This helps in avoiding these properties in my Swagger REST documentation.
I also would like to ensure that if the client passes these properties, an error is sent back. I tried setting spring.jackson.deserialization.fail-on-unknown-properties=true, but that works only for properties that are truly unknown. The properties marked with @JsonIgnore passes through this check.
Is there any way to achieve this?