Sync JSONSchemas
Change-Id: Ia9a67ce8d777fb5cc8bb711049174d707b79b407
This commit is contained in:
parent
af9ea73030
commit
fbf8714df6
@ -18,7 +18,8 @@
|
||||
"description": "Domain name",
|
||||
"format": "host-name",
|
||||
"maxLength": 255,
|
||||
"required": true
|
||||
"required": true,
|
||||
"readonly": true
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
@ -56,6 +57,9 @@
|
||||
}, {
|
||||
"rel": "records",
|
||||
"href": "/domains/{id}/records"
|
||||
}, {
|
||||
"rel": "servers",
|
||||
"href": "/domains/{id}/servers"
|
||||
}, {
|
||||
"rel": "collection",
|
||||
"href": "/domains"
|
||||
|
@ -22,14 +22,14 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "DNS Record 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])\\.$",
|
||||
"format": "host-name",
|
||||
"maxLength": 255,
|
||||
"required": true
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "DNS Record Type",
|
||||
"enum": ["A", "AAAA", "CNAME", "MX", "SRV", "TXT", "SPF", "NS", "PTR"],
|
||||
"enum": ["A", "AAAA", "CNAME", "MX", "SRV", "TXT", "SPF", "NS", "PTR", "SSHFP"],
|
||||
"required": true
|
||||
},
|
||||
"data": {
|
||||
@ -191,6 +191,21 @@
|
||||
"type": "null"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"description": "A SSHFP Record",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["SSHFP"]
|
||||
},
|
||||
"data": {
|
||||
"pattern": "^[1-2] 1 [0-9A-Fa-f]{40}$",
|
||||
"required": true
|
||||
},
|
||||
"priority": {
|
||||
"type": "null"
|
||||
}
|
||||
}
|
||||
}],
|
||||
"links": [{
|
||||
"rel": "self",
|
||||
|
@ -20,16 +20,6 @@
|
||||
"maxLength": 255,
|
||||
"required": true
|
||||
},
|
||||
"ipv4": {
|
||||
"type": ["string", "null"],
|
||||
"description": "IPv4 address of server",
|
||||
"format": "ip-address"
|
||||
},
|
||||
"ipv6": {
|
||||
"type": ["string", "null"],
|
||||
"description": "IPv6 address of server",
|
||||
"format": "ipv6"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"description": "Date and time of server creation",
|
||||
@ -43,23 +33,6 @@
|
||||
"readonly": true
|
||||
}
|
||||
},
|
||||
"anyOf": [{
|
||||
"description": "IPv4",
|
||||
"properties": {
|
||||
"ipv4": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"description": "IPv6",
|
||||
"properties": {
|
||||
"ipv6": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}],
|
||||
"links": [{
|
||||
"rel": "self",
|
||||
"href": "/servers/{id}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user