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": "updateSetting", | ||||
| 	"summary": "Update a setting", | ||||
| 	"tags": ["Settings"], | ||||
| 	"tags": ["settings"], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": ["settings"] | ||||
| 			"bearerAuth": ["admin"] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| @@ -34,7 +34,8 @@ | ||||
| 						"value": { | ||||
| 							"type": "string", | ||||
| 							"minLength": 1, | ||||
| 							"enum": ["congratulations", "404", "444", "redirect", "html"] | ||||
| 							"enum": ["congratulations", "404", "444", "redirect", "html"], | ||||
| 							"example": "html" | ||||
| 						}, | ||||
| 						"meta": { | ||||
| 							"type": "object", | ||||
| @@ -46,9 +47,16 @@ | ||||
| 								"html": { | ||||
| 									"type": "string" | ||||
| 								} | ||||
| 							}, | ||||
| 							"example": { | ||||
| 								"html": "<p>hello world</p>" | ||||
| 							} | ||||
| 						} | ||||
| 					} | ||||
| 				}, | ||||
| 				"example": { | ||||
| 					"value": "congratulations", | ||||
| 					"meta": {} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user