summaryrefslogblamecommitdiff
path: root/spore_validation.rx
blob: c7e4012ebe86fb0b7a3910c7b7c860dd0710aa9a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                 


                              




                                    
              













































                                          
{
 "type": "//rec",
 "optional": {
   "base_url":       "//str",
   "authentication": "//bool",
   "version":        "//str",
   "author": {
     "type"    : "//arr",
     "length"  : { "min": 1 },
     "contents": { "type": "//str" }
   },
   "format": {
     "type"    : "//arr",
     "contents": { "type":"//str" }
   },
   "meta": {
     "type": "//map",
     "values": {
       "type": "//str"
     }
   }
 },
 "required": {
   "name": "//str",
   "methods": {
     "type": "//map",
     "values": {
       "type": "//rec",
       "required": {
         "method": "//str",
         "path":   "//str"
       },
       "optional": {
         "expected": {
           "type"    : "//arr",
           "contents": {
             "type": "//int"
           }
         },
         "params": {
           "type": "//map",
           "values": {
             "type": "//arr",
             "contents": {"type": "//str"}
           }
         },
         "description":    "//str",
         "authentication": "//bool",
         "base_url":       "//str",
         "format": {
           "type"    : "//arr",
           "contents": { "type":"//str" }
         }
       }
     }
   }
 }
}