Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

type definition of Client4 don't match api definition #1022

Open
marknelissen opened this issue Dec 19, 2019 · 0 comments
Open

type definition of Client4 don't match api definition #1022

marknelissen opened this issue Dec 19, 2019 · 0 comments

Comments

@marknelissen
Copy link

Submit feature requests to http://www.mattermost.org/feature-requests/. File non-security related bugs here in the following format:

Summary

type definition of Client4 don't match api definition on api.mattermost.com

Environment Information

  • Webapp or React Native app: Webapp
  • Mattermost-redux Version: 5.18.0

Steps to reproduce

Try to make use of the createPost function with a structure only containing:

  • channel_id
  • message
  • props

This is only one example. Another is the mandatory timestamp attribute for the getFileThumbnailUrl and getFileUrl, while neither according to the documentation, nor the javascript code make it mandatory.

Expected behavior

Post creation endpoint is invoked.

Observed behavior

The code cannot compile since it expects a full post object, including all the date fields (create, update, ...)

Possible fixes

Revert to typing of 5.17.0.

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

No branches or pull requests

1 participant