MM-45713 - change 500 error to json object (#20682)

* MM-45713 - change 500 error to json object

* validate possible encoding errors and follow standards

* replace normal debugging string with true string

* use bool type instead of string

Co-authored-by: Pablo Velez Vidal <pablo.velez@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Pablo Andrés Vélez Vidal
2022-07-28 15:07:54 +02:00
коммит произвёл GitHub
родитель 0e75cecc4f
Коммит 0ee05ce054
3 изменённых файлов: 82 добавлений и 15 удалений

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

@@ -105,6 +105,10 @@ type ValidateBusinessEmailRequest struct {
Email string `json:"email"`
}
type ValidateBusinessEmailResponse struct {
IsValid bool `json:"is_valid"`
}
// CloudCustomerInfo represents editable info of a customer.
type CloudCustomerInfo struct {
Name string `json:"name"`