yitsushi / go-misskey

Misskey Go SDK
GNU General Public License v3.0
51 stars 12 forks source link

Fix timeline GetRequest to omit empty SinceID and UntilID #114

Closed bladedvox closed 4 months ago

bladedvox commented 4 months ago

Description of the Change

Making SinceID and UntilID optional in timeline.GetRequest

Issue or RFC

related #95

Verification Process

Send a timeline.Get request without setting SinceID and UntilID, observe you no longer receive the invalid parameter error.

Release Notes

timeline.Get properly omits SinceID and UntilID when not specifying them in the request model.

coveralls commented 4 months ago

Coverage Status

coverage: 83.927%. remained the same when pulling 844a0ea54310a14a0c47b0ecc3dc68be5cbaf022 on bladedvox:fix/tl_get into 5ebcbed2ac54af9ec7a13f04ecc7d07fe654becf on yitsushi:main.