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


                 
                             
                             

                              
                             
               




















                                   
                             




                               
                             



                               
                             



                            



                                    
                     







                                         
{
 "type": "//rec",
 "optional": {
   "base_url":       "//str",
   "description":    "//str",
   "authentication": "//bool",
   "version":        "//str",
   "authority":      "//str",
   "formats": {
     "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_status": {
           "type"    : "//arr",
           "contents": {
             "type": "//int"
           }
         },
         "required_params": {
           "type"    : "//arr",
           "contents": {
             "type": "//str"
           },
         "optional_params": {
           "type": "//arr",
           "contents": {
             "type": "//str"
           },
         },
         "description":    "//str",
         "authentication": "//bool",
         "base_url":       "//str",
         "formats": {
           "type"    : "//arr",
           "contents": { "type":"//str" }
         }
       }
     }
   }
 }
}