mirror of
				https://github.com/gotify/server.git
				synced 2024-01-28 15:20:56 +03:00 
			
		
		
		
	fix: update go-swagger
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
| @@ -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] | ||||
|   | ||||
| @@ -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": [ | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jannis Mattheis
					Jannis Mattheis