iya-sts
    Preparing search index...

    Variable checkRequestBody

    checkRequestBody: (
        req: any,
    ) => { errors?: undefined; ok: boolean } | { errors: any; ok: boolean } = ...

    Forwards to AdminApi.checkRequestBody() on the installed instance: a test asks it what a body sent to an operation would be refused for.

    Type Declaration

      • (req: any): { errors?: undefined; ok: boolean } | { errors: any; ok: boolean }
      • Validates a request's body against its operation's compiled schema, with action removed first because it is a path segment.

        A handler that owns its body, or an operation with no schema, is accepted.

        Parameters

        • req: any

          the request

        Returns { errors?: undefined; ok: boolean } | { errors: any; ok: boolean }

        { ok: true }, or { ok: false, errors }