@bearnjs/rest
    Preparing search index...

    Function validate

    • Create a validation middleware for the given schemas. Validates cookie-safe, fast-fail with 400 and a structured error payload.

      Parameters

      • schemas: SchemaSet

        The set of schemas to validate against.

      Returns Handler

      The middleware handler function.