-
Is this something that actix supports? I would like my API to fail fast when a client attempts to use it with incorrect query parameters. This is particularly useful when the API introduces breaking changes in the form of a query parameter rename. Instead of silently ignoring the old parameter and reverting back to some default behaviour (which is an accident waiting to happen), it may be best, depending on the exact circumstance, for the API to immediately error out. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is supported via standard serde attributes. See: https://serde.rs/container-attrs.html#deny_unknown_fields |
Beta Was this translation helpful? Give feedback.
This is supported via standard serde attributes. See: https://serde.rs/container-attrs.html#deny_unknown_fields