mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
22 lines
317 B
Go
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))
|
||
|
}
|