Data validation, also known as input validation, is a method of ensuring that incoming data is uncompromised. During transmission to programs, applications, and services, data can be corrupted. Data validation employs one or several checks, routines, and rules to ensure that the data coming into a system is meaningful, accurate, and secure.
Types of data validation include constraint validation, structured validation, data range validation, code validation, and data type validation. These data validation routines, rules, and constraints test for the correctness, meaningfulness, and security of incoming data.
Want to know what can happen when data validation is done improperly? Read about code injection.