fix: update go-swagger
This commit is contained in:
parent
4728e995bc
commit
9592cc95c9
2
Makefile
2
Makefile
|
|
@ -39,7 +39,7 @@ check-js:
|
||||||
(cd ui && yarn testformat)
|
(cd ui && yarn testformat)
|
||||||
|
|
||||||
download-tools:
|
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:
|
update-swagger:
|
||||||
swagger generate spec --scan-models -o docs/spec.json
|
swagger generate spec --scan-models -o docs/spec.json
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ type ApplicationAPI struct {
|
||||||
|
|
||||||
// Application Params Model
|
// Application Params Model
|
||||||
//
|
//
|
||||||
// Params allowed to create or update Applications
|
// Params allowed to create or update Applications.
|
||||||
//
|
//
|
||||||
// swagger:model ApplicationParams
|
// swagger:model ApplicationParams
|
||||||
type ApplicationParams struct {
|
type ApplicationParams struct {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ type ClientAPI struct {
|
||||||
|
|
||||||
// Client Params Model
|
// Client Params Model
|
||||||
//
|
//
|
||||||
// Params allowed to create or update Clients
|
// Params allowed to create or update Clients.
|
||||||
//
|
//
|
||||||
// swagger:model ClientParams
|
// swagger:model ClientParams
|
||||||
type ClientParams struct {
|
type ClientParams struct {
|
||||||
|
|
|
||||||
|
|
@ -332,6 +332,7 @@ func (a *MessageAPI) DeleteMessage(ctx *gin.Context) {
|
||||||
// Create a message.
|
// Create a message.
|
||||||
//
|
//
|
||||||
// __NOTE__: This API ONLY accepts an application token as authentication.
|
// __NOTE__: This API ONLY accepts an application token as authentication.
|
||||||
|
//
|
||||||
// ---
|
// ---
|
||||||
// consumes: [application/json]
|
// consumes: [application/json]
|
||||||
// produces: [application/json]
|
// produces: [application/json]
|
||||||
|
|
|
||||||
|
|
@ -2123,7 +2123,7 @@
|
||||||
"x-go-package": "github.com/gotify/server/v2/model"
|
"x-go-package": "github.com/gotify/server/v2/model"
|
||||||
},
|
},
|
||||||
"ApplicationParams": {
|
"ApplicationParams": {
|
||||||
"description": "Params allowed to create or update Applications",
|
"description": "Params allowed to create or update Applications.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Application Params Model",
|
"title": "Application Params Model",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -2195,7 +2195,7 @@
|
||||||
"x-go-package": "github.com/gotify/server/v2/model"
|
"x-go-package": "github.com/gotify/server/v2/model"
|
||||||
},
|
},
|
||||||
"ClientParams": {
|
"ClientParams": {
|
||||||
"description": "Params allowed to create or update Clients",
|
"description": "Params allowed to create or update Clients.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Client Params Model",
|
"title": "Client Params Model",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
@ -2328,9 +2328,7 @@
|
||||||
"extras": {
|
"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.",
|
"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",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {},
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"x-go-name": "Extras",
|
"x-go-name": "Extras",
|
||||||
"example": {
|
"example": {
|
||||||
"home::appliances::lighting::on": {
|
"home::appliances::lighting::on": {
|
||||||
|
|
@ -2373,7 +2371,7 @@
|
||||||
"x-go-package": "github.com/gotify/server/v2/model"
|
"x-go-package": "github.com/gotify/server/v2/model"
|
||||||
},
|
},
|
||||||
"PagedMessages": {
|
"PagedMessages": {
|
||||||
"description": "Wrapper for the paging and the messages",
|
"description": "Wrapper for the paging and the messages.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "PagedMessages Model",
|
"title": "PagedMessages Model",
|
||||||
"required": [
|
"required": [
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ type Paging struct {
|
||||||
|
|
||||||
// PagedMessages Model
|
// PagedMessages Model
|
||||||
//
|
//
|
||||||
// Wrapper for the paging and the messages
|
// Wrapper for the paging and the messages.
|
||||||
//
|
//
|
||||||
// swagger:model PagedMessages
|
// swagger:model PagedMessages
|
||||||
type PagedMessages struct {
|
type PagedMessages struct {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue