jx/internal/resource/schemas/network-route.schema.json
Matthew Rich 33b52f69ec
Some checks failed
Lint / golangci-lint (push) Failing after 10m31s
Declarative Tests / test (push) Successful in 41s
fix network route schema; fix setting the config block for the http resource
2024-09-28 19:50:24 +00:00

44 lines
1.1 KiB
JSON

{
"$id": "network-route.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "network-route",
"type": "object",
"required": [ "to", "gateway", "interface", "rtid", "metric", "routetype", "scope" ],
"properties": {
"to": {
"type": "string"
},
"gateway": {
"type": "string"
},
"interface": {
"type": "string"
},
"rtid": {
"type": "string",
"description": "Network route table id",
"pattern": "^(local|main|default|all|[0-9]+)$"
},
"metric": {
"type": "integer",
"description": "Network route metric",
"minimum": 0
},
"routetype": {
"type": "string",
"description": "Network route type",
"pattern": "^(unicast|local|broadcast|multicast|throw|unreachable|prohibit|blackhole|nat|[0-9]+)$"
},
"scope": {
"type": "string",
"description": "Network route scope",
"pattern": "^(host|link|global|[0-9]+)$"
},
"proto": {
"type": "string",
"description": "Network route scope",
"pattern": "^(kernel|boot|static|[0-9]+)$"
}
}
}