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