Page MenuHomePhabricator

Provide a Function-specific system for validation of user inputs (beyond Types)
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
Users should be able to, when creating functions, specify some sort of mandatory input validation. This could be implemented with compositions, programming language performed validation, list of dropdown options, or others.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
This was mainly inspired by this week's (07-11-24) function of the week, that I made. Given no standard way to provide a dropdown or list of options, I chose to use numbers to represent function inputs. This should not be what users are forced to do. Ideally, there would be a type for this, but, creating types for every individual function is just not sustainable. Instead, a dropdown should be available, or something similar and sane to be used for validation.

Benefits (why should this be implemented?):
This would allow for specificity and clarity with function inputs. It would make it clear to the users what they are allowed to input, and it would take the load off of the implementations to properly validate and figure out errors.

Event Timeline

I am personally am in favor of having both composition validation and dropdown options but anything to validate would be much much better than what we have now.

Jdforrester-WMF renamed this task from Function input user provided validation to Provide a Function-specific system for validation of user inputs (beyond Types).Nov 13 2024, 5:34 PM
Jdforrester-WMF added a project: Epic.