Is there a way to define two optional config prope...
# singer-tap-development
m
Is there a way to define two optional config properties but make one of them required? As in, it doesn’t matter which one you provided but you need to provide one of the two.
t
This needs a lot of improvement as a feature, but you can get what you want with this https://docs.meltano.com/reference/plugin-definition-syntax#settings_group_validation
m
thanks!!
a
That link above is for the Meltano-side config. But in SDK, @edgar_ramirez_mondragon also recently created a PR that would add "oneOf" and "anyOf" support for SDK JSON Schema type helpers: https://github.com/meltano/sdk/pull/1525 Feedback much appreciated 👍 @edgar_ramirez_mondragon - I added this for office hours discussion next week! Thanks again for creating this, and my apologies to still have it on hold pending more eyeballs. 🙂