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 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			450 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package schema
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| // UpdateStream is the schema for incoming data validation
 | |
| func UpdateStream() string {
 | |
| 	return fmt.Sprintf(`
 | |
| 		{
 | |
| 			"type": "object",
 | |
| 			"additionalProperties": false,
 | |
| 			"minProperties": 1,
 | |
| 			"properties": {
 | |
| 				"provider": %s,
 | |
| 				"name": %s,
 | |
| 				"domain_names": %s,
 | |
| 				"expires_on": %s,
 | |
| 				"meta": {
 | |
| 					"type": "object"
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	`, stringMinMax(2, 100), stringMinMax(1, 100), domainNames(), intMinOne)
 | |
| }
 |