• Is roles valid 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 roles are valid by applying the following steps in sequence:

    1. Get roles from query

    2. Check if roles exist

    3. Check if the roles are valid

    Throws

    400 NBError Bad Request

    • roles is not supported

Generated using TypeDoc