<#1519 feat: Conditionally required settings> Issu...
# meltano-repo-activity
g
#1519 feat: Conditionally required settings Issue created by aaronsteers Notes from office hours: • Settings group validation today is not very helpful in many common use cases. • Example case, "if setting A, then require setting B" • Per setting requirements: certain settings can require other settings. • Without something like that in Meltano, the only way to tell if config is wrong is to run config plugin test. • Example is 'tap-github'. • Proposal for SDK to have a feature to validate config. • Pat: some plugins use JSON Schema for validation. We want to be able to tell if the config is valid: • Meltano option for setting validation. Reuben use cases: 1. When a tap supports multiple authorization flows, we want to validate that the flow is fully valid. • E.g. anything with OAuth option as well as other username/password or other credential options. 2. Mutually exclusive input options. • E.g. tap-github (MeltanoLabs) - With list of repositories or list of organizations or list of user IDs. 3. Sometimes want to validate based on a value, not just the presence of a specific key. • E.g. If "auth_flow" value is "oauth", then certain params would be required and/or disallowed. meltano/sdk