Commit 9ff6150
committed
CUST-5289 [v3] Python SDK ListGrantsQueryParams uses camelCase keys that are silently ignored by the API
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.
Fix ListGrantsQueryParams key handling in Python SDK
- Fix bug where `sortBy`, `orderBy`, and `grantStatus` are sent as-is and ignored by the API.
- Normalize grants query aliases to `sort_by`, `order_by`, and `grant_status` at request serialization time.
- Align type hints with snake_case API contract while keeping camelCase aliases for backwards compatibility.
- Preserve existing SDK behavior for callers already using snake_case keys.
✅ Tests checks:
- `pytest tests/handler/test_http_client.py -k test_build_query_params -q` (100%)
- Manual serialization check for grants aliases via `_build_query_params` (verified)
Made-with: Cursor1 parent c15faa5 commit 9ff6150
2 files changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | | - | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | | - | |
| 65 | + | |
59 | 66 | | |
60 | | - | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | | - | |
99 | | - | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
0 commit comments