Interface ErrorSerializerOptions<T>

interface ErrorSerializerOptions<T> {
    attributes: Partial<ErrorAttributeOption<T>>;
    linkers: {
        about?: Linker<[JapiError]>;
    };
    metaizers: {
        document?: Metaizer<[JapiError[]]>;
        error?: Metaizer<[JapiError]>;
        jsonapi?: Metaizer<[]>;
    };
    version: null | string;
}

Type Parameters

Properties

attributes: Partial<ErrorAttributeOption<T>>

An object of attribute names to use in place of the default ones.

linkers: {
    about?: Linker<[JapiError]>;
}

A set of options for constructing top-level links.

Type declaration

metaizers: {
    document?: Metaizer<[JapiError[]]>;
    error?: Metaizer<[JapiError]>;
    jsonapi?: Metaizer<[]>;
}

A dictionary of Metaizers to use in different locations of the document.

Type declaration

version: null | string

The highest JSON API version supported.

Default Value

1.0

Generated using TypeDoc