• Has valid providerId validator

    Parameters

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • body.providerId is required

    Returns Promise<number>

    200 Status OK

    Description

    This validator will check if providerId type is valid by applying the following steps in sequence:

    1. Get providerId from context.body

    2. Check if providerId exist

    3. Check if providerId is valid type which is number or string

    Throws

    400 NBError Bad Request

    • providerId not exist in request body
    • Provider Id has invalid type

Generated using TypeDoc