slack icon indicating copy to clipboard operation
slack copied to clipboard

GetConversationInfo `Properties` response shape is invalid

Open jacob-winkler opened this issue 7 months ago • 1 comments

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

jacob-winkler avatar May 21 '25 15:05 jacob-winkler

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.~

nlopes avatar May 24 '25 14:05 nlopes

Closing this due to lack of activity.

nlopes avatar Jun 28 '25 17:06 nlopes