nginx-proxy-manager-zh/backend/internal/api/schema/create_access_list.go
2023-01-13 15:03:28 +10:00

22 lines
317 B
Go

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