Currently, we have multiple IDP workflows that allow users to create Bitbucket repositories within respective projects based on user-entered values. However, there is no built-in mechanism to validate whether the entered repository name already exists before proceeding with creation.
For example, in an IDP workflow, we have a field: "Enter the repository name to be created". We want to validate this user input against Bitbucket before the repository is created, preventing duplicate repositories.
Current Workaround & Limitation:
Harness IDP supports fetching API-driven options via SelectFieldFromApi, allowing users to pick from a list of existing repositories. However: SelectFieldFromApi only works when selecting from pre-fetched options. It does not validate a user-entered value in real-time.