Commit a264582
committed
Refine integer parameter inference logic
Removes 'id' and related patterns from integer parameter detection in infer_path_param_schema, treating them as string by default. Updates tests to reflect this change, ensuring 'id', 'user_id', 'userId', and 'postId' are now tested as string parameters.1 parent a4b1a7b commit a264582
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
| 1179 | + | |
| 1180 | + | |
1183 | 1181 | | |
1184 | 1182 | | |
1185 | 1183 | | |
| |||
1276 | 1274 | | |
1277 | 1275 | | |
1278 | 1276 | | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | 1277 | | |
1284 | 1278 | | |
1285 | 1279 | | |
| |||
1342 | 1336 | | |
1343 | 1337 | | |
1344 | 1338 | | |
1345 | | - | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1346 | 1342 | | |
1347 | 1343 | | |
1348 | 1344 | | |
| |||
0 commit comments