Checking a payload is not changing it
How to tell whether an API rule checks the inbound contract or changes the payload, and why rejected input is a client error while a broken mapping is an integration failure.
Request validation asks whether the request as submitted meets the public API contract. If the contract requires an integer quantity, the JSON number 3 passes that rule and the string "3" fails it. The check does not rewrite either value.
Payload transformation asks what data to send across a boundary and in what shape. Renaming customerId to customer_id for the backend is a transformation. So is converting a string to a number. Whether the conversion is appropriate depends on whether the public contract accepts the string in the first place.
Next up: Sort the statements on what you just read.