Sync Schemas

Change-Id: I813a2e39bc46ceef7d53b2ccfcee561b315c11b9
This commit is contained in:
Kiall Mac Innes 2013-01-24 09:33:58 +00:00
parent 6574e7d2a2
commit a3235ccec2
2 changed files with 24 additions and 4 deletions

View File

@ -28,8 +28,9 @@
"required": true
},
"ttl": {
"type": "integer",
"description": "Time to live"
"type": ["integer", "null"],
"description": "Time to live",
"min": 60
},
"serial": {
"type": "integer",

View File

@ -22,14 +22,14 @@
"name": {
"type": "string",
"description": "DNS Record Name",
"format": "host-name",
"pattern": "^(\\*\\.)?(([a-zA-Z0-9_]|[a-zA-Z0-9_][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9_]|[A-Za-z0-9_][A-Za-z0-9\\-]*[A-Za-z0-9])\\.$",
"maxLength": 255,
"required": true
},
"type": {
"type": "string",
"description": "DNS Record Type",
"enum": ["A", "AAAA", "CNAME", "MX", "SRV", "TXT", "SPF", "NS"],
"enum": ["A", "AAAA", "CNAME", "MX", "SRV", "TXT", "SPF", "NS", "PTR"],
"required": true
},
"data": {
@ -172,6 +172,25 @@
"type": "null"
}
}
}, {
"description": "A PTR Record",
"properties": {
"type": {
"type": "string",
"enum": ["PTR"]
},
"name": {
"type": "string",
"pattern": "^(?:(?:\\d{1,3}\\.){4}in-addr\\.arpa\\.|(?:[a-f|\\d]\\.){32}ip6\\.arpa\\.)$"
},
"data": {
"format": "host-name",
"required": true
},
"priority": {
"type": "null"
}
}
}],
"links": [{
"rel": "self",