• Is valid upsert user role body validator

    Parameters

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<number>

    200 Status OK

    Description

    This validator will check if the upsert user role body is valid by applying the following steps in sequence:

    1. Get body from context

    2. Check if body is array

    3. Check if body is valid

    Throws

    400 NBError Bad Request

    • user role body have incorrect data or format

Generated using TypeDoc