mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
21 lines
346 B
Go
21 lines
346 B
Go
|
package schema
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// UpdateDNSProvider is the schema for incoming data validation
|
||
|
func UpdateDNSProvider() string {
|
||
|
return fmt.Sprintf(`
|
||
|
{
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"minProperties": 1,
|
||
|
"properties": {
|
||
|
"name": %s,
|
||
|
"meta": {
|
||
|
"type": "object"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`, stringMinMax(1, 100))
|
||
|
}
|