mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 17:30:37 -06:00
added json-schema for config/dns.json
This commit is contained in:
parent
da824d58a7
commit
4d7e6ded11
@ -1,4 +1,5 @@
|
||||
{
|
||||
"$schema": "../schemas/config/dns.json",
|
||||
"Google":{
|
||||
"Primary": "8.8.8.8",
|
||||
"Secondary": "8.8.4.4",
|
||||
|
28
schemas/config/dns.json
Normal file
28
schemas/config/dns.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Primary": {
|
||||
"type": "string",
|
||||
"format": "ipv4"
|
||||
},
|
||||
"Secondary": {
|
||||
"type": "string",
|
||||
"format": "ipv4"
|
||||
},
|
||||
"Primary6": {
|
||||
"type": "string",
|
||||
"format": "ipv6"
|
||||
},
|
||||
"Secondary6": {
|
||||
"type": "string",
|
||||
"format": "ipv6"
|
||||
}
|
||||
},
|
||||
"required": ["Primary", "Secondary", "Primary6", "Secondary6"]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user