Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding Parameter Validation Expressions #1115

Closed
mathewc opened this issue Jan 14, 2017 · 1 comment
Closed

Binding Parameter Validation Expressions #1115

mathewc opened this issue Jan 14, 2017 · 1 comment

Comments

@mathewc
Copy link
Member

mathewc commented Jan 14, 2017

We should consider extending the syntax we have in place now for binding parameters (e.g. {age}) to allow declarative validations to also be specified (e.g. {age:int}). This would be similar to ASP.NET route parameter validation expressions (see here).

This would allow people to put declarative rules in place and error early with meaningful errors when chaining bindings together. E.g. if a QueueTrigger is bound to a Table input binding, the binding template for TableAttribute.Filter might be Age gt {age:int} and Location eq '{location:alpha}'. This will give errors earlier, rather than failing in the storage layer due to type mismatch error.

This might be even more useful in output binding scenarios, where you want to ensure data is sanitized before being stored (e.g. blob path components, document IDs, etc.)

@mathewc
Copy link
Member Author

mathewc commented Jan 20, 2017

This issue is replaced by Azure/azure-webjobs-sdk#980, so closing this. If we do that work, Functions could build on that foundation to add a declarative trigger binding data validation model.

@mathewc mathewc closed this as completed Jan 20, 2017
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant