"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .errorlocation import ErrorLocation
from gr4vy.types import BaseModel
from typing_extensions import TypedDict


class ErrorDetailTypedDict(TypedDict):
    location: ErrorLocation
    pointer: str
    r"""A JSON pointer for the particular property that caused the error."""
    message: str
    r"""A human-readdable explanation of the error."""
    type: str
    r"""The type of error that was raised for this property."""


class ErrorDetail(BaseModel):
    location: ErrorLocation

    pointer: str
    r"""A JSON pointer for the particular property that caused the error."""

    message: str
    r"""A human-readdable explanation of the error."""

    type: str
    r"""The type of error that was raised for this property."""
