ErrorDetail#

pydantic model safir.models.ErrorDetail#

The detail of the error message.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "ErrorDetail",
   "description": "The detail of the error message.",
   "type": "object",
   "properties": {
      "loc": {
         "title": "Location",
         "example": [
            "area",
            "field"
         ],
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "msg": {
         "title": "Message",
         "example": "Some error messge",
         "type": "string"
      },
      "type": {
         "title": "Error type",
         "example": "some_code",
         "type": "string"
      }
   },
   "required": [
      "msg",
      "type"
   ]
}

Fields:
field loc: Optional[list[str]] = None#
field msg: str [Required]#
field type: str [Required]#