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,12 @@ | ||||
| { | ||||
| 	"operationId": "getAccessLists", | ||||
| 	"summary": "Get all access lists", | ||||
| 	"tags": ["Access Lists"], | ||||
| 	"tags": ["access-lists"], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": ["access_lists"] | ||||
| 			"bearerAuth": [ | ||||
| 				"access_lists.view" | ||||
| 			] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| @@ -14,7 +16,12 @@ | ||||
| 			"description": "Expansions", | ||||
| 			"schema": { | ||||
| 				"type": "string", | ||||
| 				"enum": ["owner", "items", "clients", "proxy_hosts"] | ||||
| 				"enum": [ | ||||
| 					"owner", | ||||
| 					"items", | ||||
| 					"clients", | ||||
| 					"proxy_hosts" | ||||
| 				] | ||||
| 			} | ||||
| 		} | ||||
| 	], | ||||
| @@ -23,22 +30,16 @@ | ||||
| 			"description": "200 response", | ||||
| 			"content": { | ||||
| 				"application/json": { | ||||
| 					"examples": { | ||||
| 						"default": { | ||||
| 							"value": [ | ||||
| 								{ | ||||
| 									"id": 1, | ||||
| 									"created_on": "2024-10-08T22:15:40.000Z", | ||||
| 									"modified_on": "2024-10-08T22:15:40.000Z", | ||||
| 									"owner_user_id": 1, | ||||
| 									"name": "test1234", | ||||
| 									"meta": {}, | ||||
| 									"satisfy_any": true, | ||||
| 									"pass_auth": false, | ||||
| 									"proxy_host_count": 0 | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					"example": { | ||||
| 						"id": 1, | ||||
| 						"created_on": "2024-10-08T22:15:40.000Z", | ||||
| 						"modified_on": "2024-10-08T22:15:40.000Z", | ||||
| 						"owner_user_id": 1, | ||||
| 						"name": "test1234", | ||||
| 						"meta": {}, | ||||
| 						"satisfy_any": true, | ||||
| 						"pass_auth": false, | ||||
| 						"proxy_host_count": 0 | ||||
| 					}, | ||||
| 					"schema": { | ||||
| 						"$ref": "../../../components/access-list-object.json" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user