Files
nginx-proxy-manager/backend/internal/api/schema/create_dns_provider.go
Jamie Curnow 556f8b773b Work on acme.sh hander
and dns providers
2021-08-20 08:21:19 +10:00

26 lines
434 B
Go

package schema
import "fmt"
// CreateDNSProvider is the schema for incoming data validation
func CreateDNSProvider() string {
return fmt.Sprintf(`
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"acme_sh_name",
"meta"
],
"properties": {
"name": %s,
"acme_sh_name": %s,
"meta": {
"type": "object"
}
}
}
`, stringMinMax(1, 100), stringMinMax(4, 50))
}