Metadata of response body.

interface ISuccess {
    description: () => undefined | string;
    key: string;
    media: () => OpenApi.IOperation.IMediaType;
    name: string;
    schema: OpenApi.IJsonSchema;
    status: string;
    type:
        | "text/plain"
        | "application/json"
        | "multipart/form-data"
        | "application/x-www-form-urlencoded";
    "x-nestia-encrypted"?: boolean;
}

Hierarchy (View Summary)

Properties

description: () => undefined | string

Description comment for the request/response body.

key: string

Key of the body parameter.

Media type of the request/response body.

name: string

Name of the body parameter.

Metadata of response body data type.

status: string

Status code of the response.

type:
    | "text/plain"
    | "application/json"
    | "multipart/form-data"
    | "application/x-www-form-urlencoded"

Content type of the body.

"x-nestia-encrypted"?: boolean

Whether the body is encrypted or not.