return challenge tokens in send endpoint as explicit key

This commit is contained in:
Bernhard B
2024-03-25 15:59:41 +01:00
parent 8811842b91
commit de631edfb0
6 changed files with 77 additions and 10 deletions

View File

@@ -1905,7 +1905,7 @@ var doc = `{
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
"$ref": "#/definitions/api.SendMessageError"
}
}
}
@@ -2089,6 +2089,20 @@ var doc = `{
}
}
},
"api.SendMessageError": {
"type": "object",
"properties": {
"challenge_tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"error": {
"type": "string"
}
}
},
"api.SendMessageResponse": {
"type": "object",
"properties": {

View File

@@ -1889,7 +1889,7 @@
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
"$ref": "#/definitions/api.SendMessageError"
}
}
}
@@ -2073,6 +2073,20 @@
}
}
},
"api.SendMessageError": {
"type": "object",
"properties": {
"challenge_tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"error": {
"type": "string"
}
}
},
"api.SendMessageResponse": {
"type": "object",
"properties": {

View File

@@ -116,6 +116,15 @@ definitions:
registered:
type: boolean
type: object
api.SendMessageError:
properties:
challenge_tokens:
items:
type: string
type: array
error:
type: string
type: object
api.SendMessageResponse:
properties:
timestamp:
@@ -1598,7 +1607,7 @@ paths:
"400":
description: Bad Request
schema:
$ref: '#/definitions/api.Error'
$ref: '#/definitions/api.SendMessageError'
summary: Send a signal message.
tags:
- Messages