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 "required": true
}, },
"ttl": { "ttl": {
"type": "integer", "type": ["integer", "null"],
"description": "Time to live" "description": "Time to live",
"min": 60
}, },
"serial": { "serial": {
"type": "integer", "type": "integer",

View File

@ -22,14 +22,14 @@
"name": { "name": {
"type": "string", "type": "string",
"description": "DNS Record Name", "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, "maxLength": 255,
"required": true "required": true
}, },
"type": { "type": {
"type": "string", "type": "string",
"description": "DNS Record Type", "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 "required": true
}, },
"data": { "data": {
@ -172,6 +172,25 @@
"type": "null" "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": [{ "links": [{
"rel": "self", "rel": "self",