0,0 → 1,368 |
{ |
"$id":"urn:ietf:id:draft-viathinksoft-oidip-07", |
"$schema":"https://json-schema.org/draft/2020-12/schema", |
"type":"object", |
"properties":{ |
"oidip":{ |
"type":"object", |
"properties":{ |
"querySection":{ |
"type":"object", |
"properties":{ |
"query":{ |
"$ref": "#/$defs/inputQueryType" |
}, |
"result":{ |
"type":"string", |
"enum":["Found", "Not found; superior object found", "Not found", "Service error"] |
}, |
"distance":{ |
"type":"integer" |
}, |
"message":{ |
"type":"string" |
}, |
"lang":{ |
"type":"string" |
} |
}, |
"required":[ |
"query", |
"result" |
] |
}, |
"objectSection":{ |
"type":"object", |
"properties":{ |
"object":{ |
"$ref": "#/$defs/inputQueryType" |
}, |
"status":{ |
"type":"string", |
"enum":["Information available", "Information partially available", "Information unavailable"] |
}, |
"lang":{ |
"type":"string" |
}, |
"name":{ |
"type":"string" |
}, |
"description":{ |
"type":"string" |
}, |
"information":{ |
"type":"string" |
}, |
"url":{ |
"type":"string" |
}, |
"asn1-notation":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"iri-notation":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"identifier":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"standardized-id":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"unicode-label":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"long-arc":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"oidip-service":{ |
"type":"string" |
}, |
"attribute":{ |
"oneOf":[ |
{ |
"type":"string", |
"enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"] |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string", |
"enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"] |
} |
} |
] |
}, |
"parent":{ |
"type":"string" |
}, |
"subordinate":{ |
"oneOf":[ |
{ |
"type":"string" |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string" |
} |
} |
] |
}, |
"created":{ |
"$ref": "#/$defs/dateTimeRef" |
}, |
"updated":{ |
"$ref": "#/$defs/dateTimeRef" |
} |
}, |
"required":[ |
"object", |
"status" |
] |
}, |
"raSection":{ |
"type":"object", |
"properties":{ |
"ra":{ |
"$comment":"Note: \"ra\" keeps its name, even in Ra1SectionType et al.", |
"type":"string" |
}, |
"status":{ |
"type":"string", |
"enum":["Information available", "Information partially available", "Information unavailable"] |
}, |
"lang":{ |
"type":"string" |
}, |
"contact-name":{ |
"type":"string" |
}, |
"address":{ |
"type":"string" |
}, |
"phone":{ |
"type":"string" |
}, |
"mobile":{ |
"type":"string" |
}, |
"fax":{ |
"type":"string" |
}, |
"email":{ |
"type":"string" |
}, |
"url":{ |
"type":"string" |
}, |
"attribute":{ |
"oneOf":[ |
{ |
"type":"string", |
"enum":["confidential", "retired"] |
}, |
{ |
"type":"array", |
"items":{ |
"type":"string", |
"enum":["confidential", "retired"] |
} |
} |
] |
}, |
"created":{ |
"$ref": "#/$defs/dateTimeRef" |
}, |
"updated":{ |
"$ref": "#/$defs/dateTimeRef" |
} |
}, |
"required":[ |
"ra", |
"status" |
] |
}, |
"ra1Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra2Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra3Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra4Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra5Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra6Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra7Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra8Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra9Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra10Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra11Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra12Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra13Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra14Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra15Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra16Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra17Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra18Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra19Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra20Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra21Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra22Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra23Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra24Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra25Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra26Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra27Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra28Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra29Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra30Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra31Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra32Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra33Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra34Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra35Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra36Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra37Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra38Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra39Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra40Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra41Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra42Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra43Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra44Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra45Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra46Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra47Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra48Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra49Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra50Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra51Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra52Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra53Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra54Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra55Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra56Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra57Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra58Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra59Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra60Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra61Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra62Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra63Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra64Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra65Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra66Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra67Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra68Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra69Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra70Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra71Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra72Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra73Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra74Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra75Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra76Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra77Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra78Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra79Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra80Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra81Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra82Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra83Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra84Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra85Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra86Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra87Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra88Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra89Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra90Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra91Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra92Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra93Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra94Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra95Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra96Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra97Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra98Section":{ "$ref": "#/properties/oidip/properties/raSection" }, |
"ra99Section":{ "$ref": "#/properties/oidip/properties/raSection" } |
}, |
"required":[ |
"querySection" |
] |
}, |
"signature":{ |
"type":"string", |
"pattern":"^[A-Za-z0-9+/=]+\\.[A-Za-z0-9+/=]+\\.[A-Za-z0-9+/=]+$" |
} |
}, |
"required":[ |
"oidip" |
], |
"$defs":{ |
"dateTimeRef":{ |
"type":"string", |
"pattern":"^\\d{4}(-(0[1-9]|1[0-2])(-(0[1-9]|1\\d|2\\d|3[0-1])( [0-5]\\d:[0-5]\\d(:[0-5]\\d)?( [+-][0-5]\\d[0-5]\\d)?)?)?)?$" |
}, |
"inputQueryType":{ |
"$comment":"Note: The ABNF definition is more accurate", |
"type":"string", |
"pattern":"^[a-z0-9]+:(.*)$" |
} |
} |
} |