Subversion Repositories oidplus

Rev

Rev 635 | Go to most recent revision | View as "text/json" | Blame | Last modification | View Log | RSS feed

  1. {
  2.    "$schema":"http://json-schema.org/draft-07/schema#",
  3.    "type":"object",
  4.    "properties":{
  5.       "oidip":{
  6.          "type":"array",
  7.          "items":[
  8.             {
  9.                "type":"object",
  10.                "properties":{
  11.                   "query":{
  12.                      "type":"string"
  13.                   },
  14.                   "result":{
  15.                      "type":"string",
  16.                      "enum":["Found", "Not found; superior object found", "Not found", "Service error"]
  17.                   },
  18.                   "distance":{
  19.                      "type":"string"
  20.                   },
  21.                   "message":{
  22.                      "type":"string"
  23.                   }
  24.                },
  25.                "required":[
  26.                   "query",
  27.                   "result"
  28.                ]
  29.             },
  30.             {
  31.                "type":"object",
  32.                "properties":{
  33.                   "object":{
  34.                      "type":"string"
  35.                   },
  36.                   "status":{
  37.                      "type":"string",
  38.                      "enum":["Information available", "Information partially available", "Information unavailable"]
  39.                   },
  40.                   "name":{
  41.                      "type":"string"
  42.                   },
  43.                   "description":{
  44.                      "type":"string"
  45.                   },
  46.                   "information":{
  47.                      "type":"string"
  48.                   },
  49.                   "url":{
  50.                      "type":"string"
  51.                   },
  52.                   "asn1-notation":{
  53.                      "oneOf":[
  54.                         {
  55.                            "type":"string"
  56.                         },
  57.                         {
  58.                            "type":"array",
  59.                            "items":{
  60.                               "type":"string"
  61.                            }
  62.                         }
  63.                      ]
  64.                   },
  65.                   "iri-notation":{
  66.                      "oneOf":[
  67.                         {
  68.                            "type":"string"
  69.                         },
  70.                         {
  71.                            "type":"array",
  72.                            "items":{
  73.                               "type":"string"
  74.                            }
  75.                         }
  76.                      ]
  77.                   },
  78.                   "identifier":{
  79.                      "oneOf":[
  80.                         {
  81.                            "type":"string"
  82.                         },
  83.                         {
  84.                            "type":"array",
  85.                            "items":{
  86.                               "type":"string"
  87.                            }
  88.                         }
  89.                      ]
  90.                   },
  91.                   "standardized-id":{
  92.                      "oneOf":[
  93.                         {
  94.                            "type":"string"
  95.                         },
  96.                         {
  97.                            "type":"array",
  98.                            "items":{
  99.                               "type":"string"
  100.                            }
  101.                         }
  102.                      ]
  103.                   },
  104.                   "unicode-label":{
  105.                      "oneOf":[
  106.                         {
  107.                            "type":"string"
  108.                         },
  109.                         {
  110.                            "type":"array",
  111.                            "items":{
  112.                               "type":"string"
  113.                            }
  114.                         }
  115.                      ]
  116.                   },
  117.                   "long-arc":{
  118.                      "oneOf":[
  119.                         {
  120.                            "type":"string"
  121.                         },
  122.                         {
  123.                            "type":"array",
  124.                            "items":{
  125.                               "type":"string"
  126.                            }
  127.                         }
  128.                      ]
  129.                   },
  130.                   "oidip-service":{
  131.                      "type":"string"
  132.                   },
  133.                   "attribute":{
  134.                      "oneOf":[
  135.                         {
  136.                            "type":"string",
  137.                            "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
  138.                         },
  139.                         {
  140.                            "type":"array",
  141.                            "items":{
  142.                               "type":"string",
  143.                               "enum":["confidential", "draft", "frozen", "leaf", "no-identifiers", "no-unicode-labels", "retired"]
  144.                            }
  145.                         }
  146.                      ]
  147.                   },
  148.                   "attachment-name":{
  149.                      "oneOf":[
  150.                         {
  151.                            "type":"string"
  152.                         },
  153.                         {
  154.                            "type":"array",
  155.                            "items":{
  156.                               "type":"string"
  157.                            }
  158.                         }
  159.                      ]
  160.                   },
  161.                   "attachment-url":{
  162.                      "oneOf":[
  163.                         {
  164.                            "type":"string"
  165.                         },
  166.                         {
  167.                            "type":"array",
  168.                            "items":{
  169.                               "type":"string"
  170.                            }
  171.                         }
  172.                      ]
  173.                   },
  174.                   "parent":{
  175.                      "type":"string"
  176.                   },
  177.                   "subordinate":{
  178.                      "oneOf":[
  179.                         {
  180.                            "type":"string"
  181.                         },
  182.                         {
  183.                            "type":"array",
  184.                            "items":{
  185.                               "type":"string"
  186.                            }
  187.                         }
  188.                      ]
  189.                   },
  190.                   "created":{
  191.                      "type":"string",
  192.                      "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
  193.                   },
  194.                   "updated":{
  195.                      "type":"string",
  196.                      "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
  197.                   }
  198.                },
  199.                "required":[
  200.                   "object",
  201.                   "status"
  202.                ]
  203.             },
  204.             {
  205.                "type":"object",
  206.                "properties":{
  207.                   "ra":{
  208.                      "type":"string"
  209.                   },
  210.                   "ra-status":{
  211.                      "type":"string",
  212.                      "enum":["Information available", "Information partially available", "Information unavailable"]
  213.                   },
  214.                   "ra-contact-name":{
  215.                      "type":"string"
  216.                   },
  217.                   "ra-address":{
  218.                      "type":"string"
  219.                   },
  220.                   "ra-phone":{
  221.                      "type":"string"
  222.                   },
  223.                   "ra-mobile":{
  224.                      "type":"string"
  225.                   },
  226.                   "ra-fax":{
  227.                      "type":"string"
  228.                   },
  229.                   "ra-email":{
  230.                      "type":"string"
  231.                   },
  232.                   "ra-url":{
  233.                      "type":"string"
  234.                   },
  235.                   "ra-attribute":{
  236.                      "oneOf":[
  237.                         {
  238.                            "type":"string",
  239.                            "enum":["confidential", "retired"]
  240.                         },
  241.                         {
  242.                            "type":"array",
  243.                            "items":{
  244.                               "type":"string",
  245.                               "enum":["confidential", "retired"]
  246.                            }
  247.                         }
  248.                      ]
  249.                   },
  250.                   "ra-created":{
  251.                      "type":"string",
  252.                      "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
  253.                   },
  254.                   "ra-updated":{
  255.                      "type":"string",
  256.                      "pattern":"/^\\d{4}(\\-(0[1-9]|11|12)(\\-(0[1-9]|1\\d|2\\d|30|31)( [0-5][0-9]:[0-5][0-9](:[0-5][0-9]){0,1}( [\\+\\-][0-5][0-9][0-5][0-9]){0,1}){0,1}){0,1}){0,1}$/"
  257.                   }
  258.                },
  259.                "required":[
  260.                   "ra",
  261.                   "ra-status"
  262.                ]
  263.             }
  264.          ]
  265.       },
  266.       "signature":{
  267.          "type":"object",
  268.          "properties":{
  269.             "content":{
  270.                "type":"string"
  271.             },
  272.             "signature":{
  273.                "type":"string"
  274.             }
  275.          },
  276.          "required":[
  277.             "content",
  278.             "signature"
  279.          ]
  280.       }
  281.    },
  282.    "required":[
  283.       "oidip"
  284.    ]
  285. }
  286.