* fix openApi vetting

The underlying mattermost-govet tool effectively hasn't been called for some time, as we weren't checking out and building the spec files to pass. Now that hte API is in the monorepo, build it locally and check against it.

Unfortunately, our API documentation isn't up-to-date, and this PR isn't fixing that. For now, add a discrete `make vet-api` and workflow that won't block the build until the API documentation is back in sync and can be merged into the existing `make vet` directive.

* mattermost-govet: use upstream@new

* fix missing /api/v4 prefix for commands autocomplete suggestion

* document /api/v4/ldap/users/{user_id}/group_sync_memberships

* document /api/v4/groups/{group_id}/restore

* fix /files/{file_id}/public actually at root

* document /api/v4/users/invalid_emails

* fix SetThreadUnreadByPostId

* Revert "fix SetThreadUnreadByPostId"

This reverts commit b16bcc80442b4391c3e7472ce47b9da65809697b.

* Revert "Revert "fix SetThreadUnreadByPostId""

This reverts commit 8bda05dc8aa8c57b20e2fd525431b43e21474859.

* workaround undocumented API endpoints

* remove unnecessary whiteline

* ignore go tool output

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Jesse Hallam
2023-10-16 11:27:43 -03:00
коммит произвёл GitHub
родитель 930309e01e
Коммит 0577a5aaa2
6 изменённых файлов: 104 добавлений и 13 удалений

Просмотреть файл

@@ -2937,7 +2937,7 @@
"404":
$ref: "#/components/responses/NotFound"
"/api/v4/users/{user_id}/teams/{team_id}/threads/{thread_id}/set_unread/{post_id}":
put:
post:
tags:
- threads
summary: Mark a thread that user is following as unread based on a post id
@@ -3213,12 +3213,12 @@
- users
summary: Get users with invalid emails
description: >
Get users whose emails are considered invalid.
Get users whose emails are considered invalid.
It is an error to invoke this API if your team settings enable an open server.
##### Permissions
Requires `sysconsole_read_user_management_users`.
operationId: GetUsersWithInvalidEmails