Sync JSONSchemas

Change-Id: I25609bd75751f64da7d28856dbeddb320741f87e
This commit is contained in:
Kiall Mac Innes
2013-03-26 12:37:55 +00:00
parent fba78c044c
commit 3dd76600c2
2 changed files with 18 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
"name": { "name": {
"type": "string", "type": "string",
"description": "Domain name", "description": "Domain name",
"format": "host-name", "format": "domain-name",
"maxLength": 255, "maxLength": 255,
"required": true, "required": true,
"readonly": true "readonly": true
@@ -29,13 +29,16 @@
"required": true "required": true
}, },
"ttl": { "ttl": {
"type": ["integer", "null"], "type": "integer",
"description": "Time to live", "description": "Time to live",
"min": 60 "min": 1,
"max": 4294967295
}, },
"serial": { "serial": {
"type": "integer", "type": "integer",
"description": "Serial Number", "description": "Serial Number",
"min": 1,
"max": 4294967295,
"readonly": true "readonly": true
}, },
"created_at": { "created_at": {

View File

@@ -41,13 +41,14 @@
"priority": { "priority": {
"type": ["integer", "null"], "type": ["integer", "null"],
"description": "DNS Record Priority", "description": "DNS Record Priority",
"min": 0, "min": 1,
"max": 99999 "max": 65535
}, },
"ttl": { "ttl": {
"type": ["integer", "null"], "type": ["integer", "null"],
"description": "Time to live", "description": "Time to live",
"min": 60 "min": 1,
"max": 4294967295
}, },
"created_at": { "created_at": {
"type": "string", "type": "string",
@@ -130,6 +131,14 @@
"type": "string", "type": "string",
"enum": ["SRV"] "enum": ["SRV"]
}, },
"name": {
"type": "string",
"pattern": "^(?:_[A-Za-z0-9_\\-]{1,62}\\.){2}"
},
"data": {
"type": "string",
"pattern": "^(?:(?:6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{1,3}|[0-9])\\s){2}(?!.{255,})((?!\\-)[A-Za-z0-9_\\-]{1,63}(?<!\\-)\\.)+$"
},
"priority": { "priority": {
"type": "integer", "type": "integer",
"required": true "required": true