mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
28 lines
497 B
Go
28 lines
497 B
Go
|
package schema
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// CreateStream is the schema for incoming data validation
|
||
|
func CreateStream() string {
|
||
|
return fmt.Sprintf(`
|
||
|
{
|
||
|
"type": "object",
|
||
|
"additionalProperties": false,
|
||
|
"required": [
|
||
|
"provider",
|
||
|
"name",
|
||
|
"domain_names"
|
||
|
],
|
||
|
"properties": {
|
||
|
"provider": %s,
|
||
|
"name": %s,
|
||
|
"domain_names": %s,
|
||
|
"expires_on": %s,
|
||
|
"meta": {
|
||
|
"type": "object"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`, stringMinMax(2, 100), stringMinMax(1, 100), domainNames(), intMinOne)
|
||
|
}
|