AntiPattern

Validation Scope Mismatch

validation-scope-mismatch

Input/response validation and serialization rules are applied at the wrong layer or with global semantics, so fields that should be conditionally included, validated, or persisted end up missing, incorrectly included, or not enforced despite annotations/config.