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

View File

@@ -41,13 +41,14 @@
"priority": {
"type": ["integer", "null"],
"description": "DNS Record Priority",
"min": 0,
"max": 99999
"min": 1,
"max": 65535
},
"ttl": {
"type": ["integer", "null"],
"description": "Time to live",
"min": 60
"min": 1,
"max": 4294967295
},
"created_at": {
"type": "string",
@@ -130,6 +131,14 @@
"type": "string",
"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": {
"type": "integer",
"required": true