Files
nginx-proxy-manager/backend/internal/api/schema/set_auth.go
2021-06-14 19:45:28 +10:00

22 lines
333 B
Go

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