Type Alias Error

Error: {
    detail?: string;
    source?: HeaderSource | ParameterSource | PointerSource;
    type?: string;
    valid_values?: string[];
}

Type declaration

  • Optionaldetail?: string

    A human-readable explanation of the error

  • Optionalsource?: HeaderSource | ParameterSource | PointerSource

    Source of the value that caused the issue

  • Optionaltype?: string

    a URI that uniquely identifies the validation rule that failed. If it’s a URL, it should point to an explanation of the constraint in the documentation.

  • Optionalvalid_values?: string[]

    List of valid values that could be used instead to avoid the error