You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 18:05:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			345 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package schema
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| // CreateSetting is the schema for incoming data validation
 | |
| func CreateSetting() string {
 | |
| 	return fmt.Sprintf(`
 | |
| 		{
 | |
| 			"type": "object",
 | |
| 			"additionalProperties": false,
 | |
| 			"required": [
 | |
| 				"name",
 | |
| 				"value"
 | |
| 			],
 | |
| 			"properties": {
 | |
| 				"name": %s,
 | |
| 				"value": %s
 | |
| 			}
 | |
| 		}
 | |
| 	`, stringMinMax(2, 100), anyType)
 | |
| }
 |