6.29 Schema for Error Response

 {
   "$schema": "http://json-schema.org/draft-04/schema#",
   "title": "GET JSON Schema for error responses",
   "type": "object",
   "properties": {
     "error": {
       "type": "object",
       "properties": {
         "code": {
           "type": "string"
         },
         "message": {
           "type": "string"
         },
         "target": {
           "type": "string"
         },
         "innerError": {
           "type": "string"
         },
         "details": {
           "type": "array",
           "items": {
             "type": "object",
               "properties": {
                 "code": {
                   "type": "string"
                 },
                 "message": {
                   "type": "string"
                 }
               },
               "required": [
                 "code"
               ]
             }
          }
       },
       "required": [
         "code" 
       ]
     }
   },
   "required": [
     "error"
   ]
 }