Sha256: d4d4b7ae9e85c42846ad126763889d6fad60fbc92f5d7fe644949e096ea02192

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

{
  "type"        : "object",
  "title"       : "Error",
  "name"        : "error",
  "description" : "A standard error object",
  "required"    : ["message", "code", "errors"],
  "properties"  : {
    "message" : {
      "description" : "a human readable representation of the error",
      "type"        : "string",
      "readOnly"    : true
    },
    "code" : {
      "description" : "a numeric code identifying the error",
      "type"        : "integer",
      "readOnly"    : true
    },
    "errors" : {
      "description" : "error details, if applicable",
      "type"        : "array",
      "items"       : {
        "type"       : "object",
        "required"   : ["field", "message"],
        "properties" : {
          "field" : {
            "description" : "identifies the field that caused this error",
            "type"        : "string",
            "readOnly"    : true
          },
          "message" : {
            "description" : "provide more information about the cause of this error",
            "type"        : "string",
            "readOnly"    : true
          }
        }
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fidor_schema-0.5.1 schema/v1.0/error.json