zibri
    Preparing search index...

    Type Alias JsonOpenApiResponse

    Descriptor for a JSON response in OpenAPI:

    • type: 'json'
    • optional HTTP status, description
    • cls: constructor for response payload mapping
    • isArray: indicates array payload.
    type JsonOpenApiResponse = {
        cls?: Newable<unknown>;
        description?: string;
        isArray?: boolean;
        status?: HttpStatus;
        type: "json";
    }
    Index

    Properties

    cls?: Newable<unknown>

    Constructor function to map the JSON payload to a class instance.

    description?: string

    Human-readable description of the JSON response.

    isArray?: boolean

    If true, indicates the response payload is an array of items.

    status?: HttpStatus

    HTTP status code to use for the JSON response.

    type: "json"

    Constant identifier for a JSON response.