About
Data Validation is:
- the first step in a data processing lifecycle
- but is also helpful in spam bot protection.
To be able to validate, a schema must be available for the data been validated.
The schema may be:
- implicit: defined in specification (ie an email, a telefoon)
- explicit: defined in a file or api.
Data validation is also known as schema validation
Articles Related
Send strict accept strict.
You should not accept bad inputs send lax is a protocol violation.
strict is a reference to the strict keyword in javascript
Library
- Js:
- Schema validation: Javascript Object - Schema
- Java:
Regular expression
Data validation with regular expression is regularly done with Lookahead pattern
False Assumption about data type (time, …)
Documentation
- See https://html.spec.whatwg.org/#attr-input-typ - Html forms attribute type