-
Notifications
You must be signed in to change notification settings - Fork 83
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
Restored legacy PagedResponse structs and added deprecation notice #539
Restored legacy PagedResponse structs and added deprecation notice #539
Conversation
Just a thought, since they are all in the root package |
Good idea! It would make it much simpler to phase them out when that eventually happens. |
c8fa872
to
6d16efe
Compare
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.
Looks good to me! Nice work!
@@ -0,0 +1,55 @@ | |||
package linodego | |||
|
|||
// Deprecated: AccountAvailabilityPagedResponse exists for historical compatibility and should not be used. |
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.
optional: We can do something like this to make this a bit tidier:
type (
// Deprecated: AccountAvailabilityPagedResponse exists for historical compatibility and should not be used.
AccountAvailabilityPagedResponse legacyPagedResponse[AccountAvailability]
// Deprecated: AccountBetasPagedResponse exists for historical compatibility and should not be used.
AccountBetasPagedResponse legacyPagedResponse[AccountBetaProgram]
// ...
)
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.
Looks great, nice work!
📝 Description
Restored legacy PagedResponse structs and added deprecation notice