Generating code to validate input data
First Claim
1. A method to be executed at least in part in a computing device for protecting an application against malformed input data, the method comprising:
- defining a schema for a well-formed data file containing the input data;
generating executable code based on the schema;
validating the input data using the executable code; and
providing validation results to the application.
2 Assignments
0 Petitions
Accused Products
Abstract
Input data is validated by generating code based on the input data. A schema is generated based on the input data indicating conditions for the input file. The schema may then be customized based on a type of application to consume the input data. A validator executable code is generated based on the schema and checks the input file for compliance with the conditions determined by the schema. Results of validation may be provided to the application in yes or no form, or as number of non-compliances. In the latter case, the application may decide to accept or reject the data based on predetermined non-compliance levels.
35 Citations
20 Claims
-
1. A method to be executed at least in part in a computing device for protecting an application against malformed input data, the method comprising:
-
defining a schema for a well-formed data file containing the input data; generating executable code based on the schema; validating the input data using the executable code; and providing validation results to the application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system for protecting an application against malformed input data, comprising:
a validation engine configured to; execute a validation code generator module that is arranged to generate executable validation code based on a schema defining a well-formed data file containing the input data and instructions from at least one parser module; receive the input data; execute the validation code to validate the input data; and provide validation results to the application. - View Dependent Claims (13, 14, 15, 16, 17)
-
18. A computer-readable medium having computer executable instructions for validating data in an input file, the instructions comprising:
-
receiving a schema defining a well-formed data file containing input data; receiving instructions from a validation parser module for parsing the schema into executable validation code generating executable validation code; validating the input data by executing the executable validation code on the input file; and providing validation results to the application. - View Dependent Claims (19, 20)
-
Specification