slack
slack copied to clipboard
GetConversationInfo `Properties` response shape is invalid
What happened
The response shape is not valid with the current slack API response
// Channel contains information about the channel
type Channel struct {
GroupConversation
IsChannel bool `json:"is_channel"`
IsGeneral bool `json:"is_general"`
IsMember bool `json:"is_member"`
Locale string `json:"locale"`
Properties *Properties `json:"properties"`
}
type Properties struct {
Canvas Canvas `json:"canvas"`
}
type Canvas struct {
FileId string `json:"file_id"`
IsEmpty bool `json:"is_empty"`
QuipThreadId string `json:"quip_thread_id"`
}
Expected behavior
// Channel contains information about the channel
type Channel struct {
GroupConversation
IsChannel bool `json:"is_channel"`
IsGeneral bool `json:"is_general"`
IsMember bool `json:"is_member"`
Locale string `json:"locale"`
Properties *Properties `json:"properties"`
}
type Properties struct {
Tabs []Tab `json:"tabs"`
}
type Tab struct {
Id string `json:"id"`
Label string `json:"label"`
Type string `json:"type"`
Data Data `json:"data"`
}
type Data struct {
FileId string `json:"file_id"`
SharedTs string `json:"shared_ts"`
}
Steps to reproduce
See response shape from official slack docs https://api.slack.com/methods/conversations.info
Hi @jacob-winkler, can you confirm which version of the library you're using? If it's 0.16.0, ~I'm close to releasing 0.17.0~ I've released 0.17.0 which should fix this.
~If you'd like, you can use the current latest -rc release which also has this already fixed: v0.17.0-rc6.~
Closing this due to lack of activity.