fix: update go-swagger

This commit is contained in:
Jannis Mattheis
2023-09-16 20:38:20 +02:00
parent 4728e995bc
commit 9592cc95c9
11 changed files with 959 additions and 960 deletions

View File

@@ -39,7 +39,7 @@ check-js:
(cd ui && yarn testformat)
download-tools:
go install github.com/go-swagger/go-swagger/cmd/swagger@v0.26.1
go install github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5
update-swagger:
swagger generate spec --scan-models -o docs/spec.json

View File

@@ -31,7 +31,7 @@ type ApplicationAPI struct {
// Application Params Model
//
// Params allowed to create or update Applications
// Params allowed to create or update Applications.
//
// swagger:model ApplicationParams
type ApplicationParams struct {

View File

@@ -27,7 +27,7 @@ type ClientAPI struct {
// Client Params Model
//
// Params allowed to create or update Clients
// Params allowed to create or update Clients.
//
// swagger:model ClientParams
type ClientParams struct {

View File

@@ -332,6 +332,7 @@ func (a *MessageAPI) DeleteMessage(ctx *gin.Context) {
// Create a message.
//
// __NOTE__: This API ONLY accepts an application token as authentication.
//
// ---
// consumes: [application/json]
// produces: [application/json]

View File

@@ -2123,7 +2123,7 @@
"x-go-package": "github.com/gotify/server/v2/model"
},
"ApplicationParams": {
"description": "Params allowed to create or update Applications",
"description": "Params allowed to create or update Applications.",
"type": "object",
"title": "Application Params Model",
"required": [
@@ -2195,7 +2195,7 @@
"x-go-package": "github.com/gotify/server/v2/model"
},
"ClientParams": {
"description": "Params allowed to create or update Clients",
"description": "Params allowed to create or update Clients.",
"type": "object",
"title": "Client Params Model",
"required": [
@@ -2328,9 +2328,7 @@
"extras": {
"description": "The extra data sent along the message.\n\nThe extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type.\n\nThe keys should be in the following format: \u0026lt;top-namespace\u0026gt;::[\u0026lt;sub-namespace\u0026gt;::]\u0026lt;action\u0026gt;\n\nThese namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.",
"type": "object",
"additionalProperties": {
"type": "object"
},
"additionalProperties": {},
"x-go-name": "Extras",
"example": {
"home::appliances::lighting::on": {
@@ -2373,7 +2371,7 @@
"x-go-package": "github.com/gotify/server/v2/model"
},
"PagedMessages": {
"description": "Wrapper for the paging and the messages",
"description": "Wrapper for the paging and the messages.",
"type": "object",
"title": "PagedMessages Model",
"required": [

View File

@@ -37,7 +37,7 @@ type Paging struct {
// PagedMessages Model
//
// Wrapper for the paging and the messages
// Wrapper for the paging and the messages.
//
// swagger:model PagedMessages
type PagedMessages struct {