nginx-proxy-manager-zh/backend/internal/api/schema/create_access_list.go

22 lines
317 B
Go
Raw Normal View History

2023-01-13 00:03:28 -05:00
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))
}