Data Validation (Schema Validation)

Card Puncher Data Processing

About

Data Validation is:

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

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

Regular expression

Data validation with regular expression is regularly done with Lookahead pattern

False Assumption about data type (time, …)

Documentation

Task Runner