Ensure `Decode` returns errors for invalid values.