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,49 +1,54 @@ | ||||
| { | ||||
| 	"operationId": "getAccessList", | ||||
| 	"summary": "Get a access List", | ||||
| 	"tags": ["Access Lists"], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": ["access_lists"] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| 		{ | ||||
| 			"in": "path", | ||||
| 			"name": "listID", | ||||
| 			"schema": { | ||||
| 				"type": "integer", | ||||
| 				"minimum": 1 | ||||
| 			}, | ||||
| 			"required": true, | ||||
| 			"example": 1 | ||||
| 		} | ||||
| 	], | ||||
| 	"responses": { | ||||
| 		"200": { | ||||
| 			"description": "200 response", | ||||
| 			"content": { | ||||
| 				"application/json": { | ||||
| 					"examples": { | ||||
| 						"default": { | ||||
| 							"value": { | ||||
| 								"id": 1, | ||||
| 								"created_on": "2020-01-30T09:36:08.000Z", | ||||
| 								"modified_on": "2020-01-30T09:41:04.000Z", | ||||
| 								"is_disabled": false, | ||||
| 								"email": "jc@jc21.com", | ||||
| 								"name": "Jamie Curnow", | ||||
| 								"nickname": "James", | ||||
| 								"avatar": "//www.gravatar.com/avatar/6193176330f8d38747f038c170ddb193?default=mm", | ||||
| 								"roles": ["admin"] | ||||
| 							} | ||||
| 						} | ||||
| 					}, | ||||
| 					"schema": { | ||||
| 						"$ref": "../../../../components/access-list-object.json" | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|     "operationId": "getAccessList", | ||||
|     "summary": "Get a access List", | ||||
|     "tags": [ | ||||
|         "access-lists" | ||||
|     ], | ||||
|     "security": [ | ||||
|         { | ||||
|             "bearerAuth": [ | ||||
|                 "access_lists.view" | ||||
|             ] | ||||
|         } | ||||
|     ], | ||||
|     "parameters": [ | ||||
|         { | ||||
|             "in": "path", | ||||
|             "name": "listID", | ||||
|             "description": "Access List ID", | ||||
|             "schema": { | ||||
|                 "type": "integer", | ||||
|                 "minimum": 1 | ||||
|             }, | ||||
|             "required": true, | ||||
|             "example": 1 | ||||
|         } | ||||
|     ], | ||||
|     "responses": { | ||||
|         "200": { | ||||
|             "description": "200 response", | ||||
|             "content": { | ||||
|                 "application/json": { | ||||
|                     "examples": { | ||||
|                         "default": { | ||||
|                             "value": { | ||||
|                                 "id": 1, | ||||
|                                 "created_on": "2025-10-28T04:06:55.000Z", | ||||
|                                 "modified_on": "2025-10-29T22:48:20.000Z", | ||||
|                                 "owner_user_id": 1, | ||||
|                                 "name": "My Access List", | ||||
|                                 "meta": {}, | ||||
|                                 "satisfy_any": false, | ||||
|                                 "pass_auth": false, | ||||
|                                 "proxy_host_count": 1 | ||||
|                             } | ||||
|                         } | ||||
|                     }, | ||||
|                     "schema": { | ||||
|                         "$ref": "../../../../components/access-list-object.json" | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user