{
    "$id":"http://example.com/example.json",
    "type":"object",
    "properties":{
       "status":{
          "$id":"/properties/list_id",
          "type":"string",
          "description":"If the search was successful status is returned as success",
          "examples":[
             "success"
          ]
       },
       "error_list": {
        "type": "array",
        "items": {
           "$id": "/properties/error_list/items/",
           "type": "object",
           "properties": {
              "error_code": {
                 "$id": "/properties/error_list/items/properties/error_code",
                 "type": "string",
                 "description": "If the search fails an error code is sent back.",
                 "default": "",
                 "examples": [
                    "invalid-parameter-value-length"
                 ]
              },
              "field": {
                 "$id": "/properties/error_list/items/properties/field",
                 "type": "string",
                 "description": "Field name for which error is there.",
                 "default": "",
                 "examples": [
                    "page"
                 ]
              }
           },
           "required": [
              "error_code",
              "field"
           ]
        }
     }
    },
    "oneOf": [
       {
          "required": [
             "status"
          ]
       },
       {
          "required": [
             "error_list"
          ]
       }
    ]
 }