Skip to content
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

NullableStringのisSetの値がおかしい #10

Open
oribe1115 opened this issue Mar 31, 2024 · 0 comments
Open

NullableStringのisSetの値がおかしい #10

oribe1115 opened this issue Mar 31, 2024 · 0 comments

Comments

@oribe1115
Copy link

NullableStringは本来「valueがnilのときはisSetはfalse」となっていることが期待されるがそうなっていないケースがある

発生したケース

traqApi.ChannelApi.GetChannels(auth).Execute()の返り値のParentId
対応するAPIGET /api/v3/channelsを直接叩いたときに"parentId": nullとなるすべてのチャンネルにおいて発生

&traq.Channel{
    Id:       "f08c42ad-09e7-40ca-8966-b314fd3e48d9",
    ParentId: traq.NullableString{
        value: (*string)(nil),
        isSet: true,
    },
    Archived: false,
    Force:    false,
    Name:     "gps",
    ...
}

確認済みなのはNullableStringだけだが、他のNullable*でも同様の状況になっている可能性があるかもしれない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant