yitsushi / go-misskey

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

Some of the request struct does not respect optional fields #95

Open yitsushi opened 2 years ago

yitsushi commented 2 years ago

Describe the bug Some of the requests have missing omitempty annotations, because of that, the request will contain the field with default value (empty string or 0) and Misskey will handle them as requested value and not as an optional field.

🙂 Expected behavior All request structs have proper JSON annotation.

☚ī¸ Actual Behavior Some of the request structs have improper JSON annotation.

📌 Additional context Reference: https://github.com/yitsushi/go-misskey/pull/93