mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
28 lines
521 B
Go
28 lines
521 B
Go
package schema
|
|
|
|
import "fmt"
|
|
|
|
// UpdateHost is the schema for incoming data validation
|
|
func UpdateHost() string {
|
|
return fmt.Sprintf(`
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"properties": {
|
|
"host_template_id": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"provider": %s,
|
|
"name": %s,
|
|
"domain_names": %s,
|
|
"expires_on": %s,
|
|
"meta": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
`, stringMinMax(2, 100), stringMinMax(1, 100), domainNames(), intMinOne)
|
|
}
|