Tauffer-Consulting / domino

User friendly and open source platform for workflow creation and monitoring
https://domino-workflows.io/
Apache License 2.0
152 stars 14 forks source link

fix(frontend): upstream option for anyof array #266

Closed nathan-vm closed 7 months ago

nathan-vm commented 8 months ago
vinicvaz commented 8 months ago

anyOf(string, null) is rendering same options as anyOf(string, null, int, float, date, etc). We should render only the allowed types. For example, in email sender piece the arg_value of the InnerArgModel is typed as Optional[str] and the upstream options is allowing we select all types from Log piece. image image

vinicvaz commented 8 months ago

@nathan-vm Now is good but I think we should validate fields with "format" as well for generating upstream options. The way we have we are accepting date, datetime, time, enum in string fields. Strings without any format are pure strings Strings with date must connect only with strings with date, the same for time, datetime, etc.