mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
24 lines
460 B
Go
24 lines
460 B
Go
package schema
|
|
|
|
import "fmt"
|
|
|
|
// UpdateUser is the schema for incoming data validation
|
|
func UpdateUser() string {
|
|
return fmt.Sprintf(`
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"properties": {
|
|
"name": %s,
|
|
"nickname": %s,
|
|
"email": %s,
|
|
"is_disabled": {
|
|
"type": "boolean"
|
|
},
|
|
"capabilities": %s
|
|
}
|
|
}
|
|
`, stringMinMax(2, 100), stringMinMax(2, 100), stringMinMax(5, 150), capabilties())
|
|
}
|