Hello Team, i am trying to build a custom connecto...
# help-connector-development
n
Hello Team, i am trying to build a custom connector and was checking the following tutorial, https://docs.airbyte.com/connector-development/tutorials/cdk-tutorial-python-http/connection-checking at step 4, in the documentation it mentions based on the spec.yaml we must define the username, and password structure over there.
Copy code
def check_connection(self, logger, config) -> Tuple[bool, any]:
        accepted_currencies = {"USD", "JPY", "BGN", "CZK", "DKK"}  # assume these are the only allowed currencies
        input_currency = config['base']
        if input_currency not in accepted_currencies:
            return False, f"Input currency {input_currency} is invalid. Please input one of the following currencies: {accepted_currencies}"
        else:
            return True, None
✅ 1