-
Notifications
You must be signed in to change notification settings - Fork 123
Fix: Update ListGrantsQueryParams to use snake_case parameter values (Fixes #669) #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cursor Agent can help with this pull request. Just |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #672 +/- ##
==========================================
+ Coverage 93.34% 96.42% +3.07%
==========================================
Files 37 37
Lines 812 812
Branches 72 72
==========================================
+ Hits 758 783 +25
+ Misses 47 26 -21
+ Partials 7 3 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pull Request Summary
Files Changed
View more in PlayerZero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not just the values, but the keys too. Can we do an audit of all other apis to ensure this is correct?
All of our models use camel case which is translated to snake case to match the expected API schemas. We are working on having our models automatically generated from our OpenAPI spec files, which will resolve such inconsistencies. |
Co-authored-by: demello.aaron <demello.aaron@gmail.com>
- Keep camelCase property names (sortBy, orderBy, grantStatus) - Update values to match API: 'created_at' | 'updated_at' for sortBy - Add test coverage for correct API value usage - Maintains backward compatibility with existing code Fixes #669
- Add unreleased section with fix for ListGrantsQueryParams.sortBy values - Follows conventional commits format
9e9da80
to
aa6b267
Compare
nylas + PlayerZeroView more in PlayerZero |
Description
This PR fixes issue #669 by updating the
ListGrantsQueryParams
interface to use snake_case parameter values that align with the Nylas API documentation.Updated
ListGrantsQueryParams
interface insrc/models/grants.ts
to use snake_case parameter names:sortBy
→ with values'created_at' | 'updated_at'
orderBy
→ with values'asc' | 'desc'
The SDK's internal conversion mechanism continues to work, maintaining backward compatibility