mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Swagger/openapi schema mega fixes and Cypress validation/enforcement
This commit is contained in:
		| @@ -1,10 +1,10 @@ | ||||
| { | ||||
| 	"operationId": "loginAsUser", | ||||
| 	"summary": "Login as this user", | ||||
| 	"tags": ["Users"], | ||||
| 	"tags": ["users"], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": ["users"] | ||||
| 			"bearerAuth": ["admin"] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| @@ -35,11 +35,11 @@ | ||||
| 									"created_on": "2020-01-30T10:43:44.000Z", | ||||
| 									"modified_on": "2020-01-30T10:43:44.000Z", | ||||
| 									"is_disabled": false, | ||||
| 									"email": "jc@jc21.com", | ||||
| 									"name": "Jamie Curnow", | ||||
| 									"nickname": "James", | ||||
| 									"email": "user2@example.com", | ||||
| 									"name": "John Doe", | ||||
| 									"nickname": "Jonny", | ||||
| 									"avatar": "//www.gravatar.com/avatar/3c8d73f45fd8763f827b964c76e6032a?default=mm", | ||||
| 									"roles": ["admin"] | ||||
| 									"roles": [] | ||||
| 								} | ||||
| 							} | ||||
| 						} | ||||
| @@ -50,16 +50,15 @@ | ||||
| 						"required": ["expires", "token", "user"], | ||||
| 						"additionalProperties": false, | ||||
| 						"properties": { | ||||
| 							"expires": { | ||||
| 								"description": "Token Expiry Unix Time", | ||||
| 								"example": 1566540249, | ||||
| 								"minimum": 1, | ||||
| 								"type": "number" | ||||
| 							}, | ||||
| 							"token": { | ||||
| 								"description": "JWT Token", | ||||
| 								"example": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4", | ||||
| 								"type": "string" | ||||
| 								"type": "string", | ||||
| 								"example": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4" | ||||
| 							}, | ||||
| 							"expires": { | ||||
| 								"description": "Token Expiry Timestamp", | ||||
| 								"type": "string", | ||||
| 								"example": "2020-01-30T10:43:44.000Z" | ||||
| 							}, | ||||
| 							"user": { | ||||
| 								"$ref": "../../../../components/user-object.json" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user