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,16 +1,17 @@ | ||||
| { | ||||
| 	"operationId": "uploadCertificate", | ||||
| 	"summary": "Uploads a custom Certificate", | ||||
| 	"tags": ["Certificates"], | ||||
| 	"tags": ["certificates"], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": ["certificates"] | ||||
| 			"bearerAuth": ["certificates.manage"] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| 		{ | ||||
| 			"in": "path", | ||||
| 			"name": "certID", | ||||
| 			"description": "Certificate ID", | ||||
| 			"schema": { | ||||
| 				"type": "integer", | ||||
| 				"minimum": 1 | ||||
| @@ -20,28 +21,7 @@ | ||||
| 		} | ||||
| 	], | ||||
| 	"requestBody": { | ||||
| 		"description": "Certificate Files", | ||||
| 		"required": true, | ||||
| 		"content": { | ||||
| 			"multipart/form-data": { | ||||
| 				"schema": { | ||||
| 					"type": "object", | ||||
| 					"additionalProperties": false, | ||||
| 					"required": ["certificate", "certificate_key"], | ||||
| 					"properties": { | ||||
| 						"certificate": { | ||||
| 							"type": "string" | ||||
| 						}, | ||||
| 						"certificate_key": { | ||||
| 							"type": "string" | ||||
| 						}, | ||||
| 						"intermediate_certificate": { | ||||
| 							"type": "string" | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		"$ref": "../../../../../common.json#/properties/certificate_files" | ||||
| 	}, | ||||
| 	"responses": { | ||||
| 		"200": { | ||||
| @@ -63,15 +43,18 @@ | ||||
| 						"properties": { | ||||
| 							"certificate": { | ||||
| 								"type": "string", | ||||
| 								"minLength": 1 | ||||
| 								"minLength": 1, | ||||
| 								"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----" | ||||
| 							}, | ||||
| 							"certificate_key": { | ||||
| 								"type": "string", | ||||
| 								"minLength": 1 | ||||
| 								"minLength": 1, | ||||
| 								"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----" | ||||
| 							}, | ||||
| 							"intermediate_certificate": { | ||||
| 								"type": "string", | ||||
| 								"minLength": 1 | ||||
| 								"minLength": 1, | ||||
| 								"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----" | ||||
| 							} | ||||
| 						} | ||||
| 					} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user