Unverified Commit aea90e94 authored by Gavin Brown's avatar Gavin Brown
Browse files

initial commit

parents
This diff is collapsed.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id" : "rdap_autnum.json",
"allOf": [
{
"$ref": "rdap_response_common.json#"
},
{
"$ref": "rdap_autnum_object.json#"
}
],
"links": [
{
"description": "Get autnum",
"href": "/autnum/{autnum}",
"hrefSchema": {
"properties": {
"autnum": {
"$ref": "#/definitions/autnum"
}
}
},
"method": "GET",
"rel": "self",
"title": "autnum",
"targetSchema" : {"$ref":"#"}
}
]
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id" : "rdap_autnum_object.json",
"definitions" : {
"autnumClass" : {"const": "autnum" },
"autnum": {
"type": "integer",
"minimum": 0,
"maximum": 4294967295
}
},
"allOf": [
{
"$ref": "rdap_common.json#"
},
{
"properties": {
"objectClassName": {
"$ref": "#/definitions/autnumClass"
},
"startAutnum": {
"$ref": "#/definitions/autnum"
},
"endAutnum": {
"$ref": "#/definitions/autnum"
},
"name": {
"type": "string"
},
"type": {
"$ref": "rdap_common.json#/definitions/rirType"
},
"country": {
"$ref": "rdap_common.json#/definitions/country"
},
"entities": {
"type": "array",
"items": {
"$ref": "rdap_entity_object.json#"
}
}
},
"required": [
"objectClassName"
],
"not": { "required": [ "domainSearchResults", "nameserverSearchResults", "entitySearchResults"] }
}
]
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id" : "rdap_common.json",
"definitions": {
"positiveInteger": {
"type": "integer",
"minimum": 0
},
"uniqueStringArray": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"stringArray": {
"type": "array",
"items": {
"type": "string"
}
},
"datetime": {
"type": "string",
"format": "date-time"
},
"uri": {
"type": "string",
"format": "uri"
},
"ipv4": {
"type": "string",
"format": "ipv4"
},
"ipv6": {
"type": "string",
"format": "ipv6"
},
"ip": {
"oneOf": [
{
"$ref": "#/definitions/ipv4"
},
{
"$ref": "#/definitions/ipv6"
}
]
},
"rirBasicType": {
"type": "string",
"enum": [
"DIRECT ALLOCATION",
"DIRECT ASSIGNMENT",
"REALLOCATION",
"REASSIGNMENT",
"ALLOCATED UNSPECIFIED",
"ALLOCATED-BY-RIR",
"ALLOCATED-BY-LIR"
]
},
"rirType": {
"anyOf":[
{
"$ref": "#/definitions/rirBasicType"
},
{
"type" : "string",
"description": "non standard rir type"
}
]
},
"ldhName": {
"type": "string",
"format": "hostname"
},
"unicodeName": {
"type": "string",
"format" : "idn-hostname"
},
"domainName": {
"oneOf": [
{
"$ref": "#/definitions/ldhName"
},
{
"$ref": "#/definitions/unicodeName"
}
]
},
"eventAction": {
"type": "string",
"enum": [
"registration",
"reregistration",
"last changed",
"expiration",
"deletion",
"reinstantiation",
"transfer",
"locked",
"unlocked",
"last update of RDAP database",
"registrar expiration",
"enum validation expiration"
]
},
"noticeType": {
"type": "string",
"enum": [
"result set truncated due to authorization",
"result set truncated due to excessive load",
"result set truncated due to unexplainable reasons",
"object truncated due to authorization",
"object truncated due to excessive load",
"object truncated due to unexplainable reasons"
]
},
"statusValue": {
"type": "string",
"enum": [
"validated",
"renew prohibited",
"update prohibited",
"transfer prohibited",
"delete prohibited",
"client renew prohibited",
"server renew prohibited",
"client update prohibited",
"server update prohibited",
"client transfer prohibited",
"server transfer prohibited",
"client delete prohibited",
"server delete prohibited",
"client hold",
"server hold",
"proxy",
"private",
"removed",
"obscured",
"associated",
"active",
"inactive",
"locked",
"pending create",
"pending renew",
"pending transfer",
"pending update",
"pending delete",
"pending restore",
"auto renew period",
"redemption period",
"renew period",
"transfer period",
"add period"
]
},
"status": {
"type": "array",
"items": {
"anyOf":[
{
"$ref": "#/definitions/statusValue"
},
{
"type" : "string",
"description": "non standard status"
}
]
},
"uniqueItems": true
},
"port43": {
"oneOf": [
{
"$ref": "#/definitions/ip"
},
{
"type": "string",
"format": "hostname"
}
]
},
"lang": {
"type": "string",
"pattern": "[a-z]{2}(-[A-Z][a-zA-Z]*(\\-[A-Z]{2})?)?"
},
"country": {
"type": "string",
"patter": "^[A-Z]{2}$"
},
"link": {
"type": "object",
"properties": {
"value": {
"$ref": "#/definitions/uri"
},
"rel": {
"type": "string",
"enum": [
"about",
"alternate",
"appendix",
"archives",
"author",
"blocked-by",
"bookmark",
"canonical",
"chapter",
"cite-as",
"collection",
"contents",
"convertedFrom",
"copyright",
"create-form",
"current",
"describedby",
"describe",
"disclosure",
"dns-prefetch",
"duplicate",
"edit",
"edit-form",
"edit-media",
"enclosure",
"first",
"glossary",
"help",
"hosts",
"hub",
"icon",
"index",
"item",
"last",
"latest-version",
"license",
"lrdd",
"memento",
"monitor",
"monitor-group",
"next",
"next-archive",
"nofollow",
"noreferrer",
"original",
"payment",
"pingback",
"preconnect",
"predecessor-version",
"prefecth",
"preload",
"prerender",
"prev",
"preview",
"previous",
"prev-archive",
"profile",
"related",
"replies",
"restconf",
"search",
"section",
"self",
"service",
"start",
"stylesheet",
"subsection",
"successor-version",
"tag",
"terms-of-service",
"timegate",
"timemap",
"type",
"up",
"version-history",
"via",
"webmention",
"working-copy",
"working-copy-of"
]
},
"href": {
"$ref": "#/definitions/uri"
},
"hreflang": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/definitions/lang"
}
},
"title": {
"type": "string"
},
"media": {
"type": "string"
},
"type": {
"type": "string",
"pattern": "[a-zA-Z][a-zA-Z0-9]*/[a-zA-Z][a-zA-Z0-9]*"
}
}
},
"links": {
"type": "array",
"items": {
"$ref": "#/definitions/link"
}
},
"eventWithoutActor": {
"type": "object",
"properties": {
"eventAction": {
"anyOf":[
{
"$ref": "#/definitions/eventAction"
},
{
"type" : "string",
"description": "non standard event action"
}
]
},
"eventDate": {
"$ref": "#/definitions/datetime"
},
"links": {
"$ref": "#/definitions/links"
}
}
},
"event": {
"allOf": [
{
"$ref": "#/definitions/eventWithoutActor"
},
{
"properties": {
"eventActor": {
"type": "string"
}
}
}
]
},
"events": {
"type": "array",
"items": {
"$ref": "#/definitions/event"
}
},
"notice": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"type": {
"anyOf":[
{
"$ref": "#/definitions/noticeType"
},
{
"type" : "string",
"description": "non standard notice type"
}
]
},
"description": {
"$ref": "#/definitions/stringArray"
},
"links": {
"$ref": "#/definitions/links"
}
}
},
"notices": {
"type": "array",
"items": {
"$ref": "#/definitions/notice"
}
},
"remarks": {
"type": "array",
"items": {
"$ref": "#/definitions/notice"
}
},
"publicId": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"identifier": {
"type": "string"
}
},
"required": [
"type",
"identifier"
]
},
"publicIds": {
"type": "array",
"items": {
"$ref": "#/definitions/publicId"
}
}
},
"type": "object",
"properties": {
"handle": {
"type": "string"
},
"status": {
"$ref": "#/definitions/uniqueStringArray"
},
"port43": {
"$ref": "#/definitions/port43"
},
"publicIds": {
"$ref": "#/definitions/publicIds"
},
"events": {
"$ref": "#/definitions/events"
},
"remarks": {
"$ref": "#/definitions/remarks"
},
"links" : {
"$ref": "#/definitions/links"
}
}
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id" : "rdap_domain.json",
"allOf": [
{
"$ref": "rdap_response_common.json#"
},
{
"$ref": "rdap_domain_object.json#"
}
],
"links": [
{
"description": "Get domain",
"href": "/domain/{domainName}",
"hrefSchema": {
"properties": {
"domainName": {
"$ref": "rdap_common.json#/definitions/domainName"
}
}
},
"method": "GET",
"rel": "self",
"title": "domain",
"targetSchema" : {"$ref":"#"}
}
]
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id" : "rdap_domain_object.json",
"definitions": {
"domainClass" : {"const": "domain" },
"variantRelation": {
"type": "string",
"enum": [
"registered",
"unregistered",
"registration restricted",
"open registration",
"conjoined"
]
},
"dnssecAlgorithm": {
"type": "integer",
"enum": [
1,
2,
3,
5,
6,
7,
8,
10,
12,
13,
14,
15,
16
]
},
"hexString": {
"type": "string",
"pattern": "[0-9a-fA-F]+"
},
"dsData": {
"type": "array",
"items": {
"type": "object",
"properties": {
"keyTag": {
"$ref": "rdap_common.json#/definitions/positiveInteger"
},
"algorithm": {
"$ref": "#/definitions/dnssecAlgorithm"
},
"digest": {
"$ref": "#/definitions/hexString"
},
"digestType": {
"type": "integer",
"enum": [
1,
2,
3,
4
]
},
"events": {
"$ref": "rdap_common.json#/definitions/events"
},
"links": {
"$ref": "rdap_common.json#/definitions/links"
}
}
}
},
"keyData": {
"type": "array",
"items": {
"type": "object",