Commit 100a941
Fix getFunctionLogs orderBy parameter with proper enum validation
- Update TypeScript implementation to use enum validation for order and orderBy fields
- Add enum constraints to JSON schema for type safety
- orderBy now only accepts: function_name, duration, mem_usage, start_time
- order now only accepts: desc, asc
- Enhanced field descriptions with explanations
- Prevents API errors like "OrderBy取值与规范不符" when using invalid values like "RequestTime"
Fixes #64
Co-authored-by: Booker Zhao <binggg@users.noreply.github.com>1 parent e0ffb3c commit 100a941
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
| 1089 | + | |
| 1090 | + | |
1090 | 1091 | | |
1091 | 1092 | | |
1092 | 1093 | | |
1093 | | - | |
| 1094 | + | |
| 1095 | + | |
1094 | 1096 | | |
1095 | 1097 | | |
1096 | 1098 | | |
| |||
0 commit comments