Polycademy / Verify

Polyglot Validation and Filtering Service
0 stars 0 forks source link

Schematic Validation #1

Open CMCDragonkai opened 9 years ago

CMCDragonkai commented 9 years ago

Validation of data is equivalent to specifying a schema.

A schema also specifies default data, and other various possible conditions.

Therefore the appropriate DSL is also the one that specifies the schema.

Just like in SQL where it specifies a schema for a table, which tells us how to validate the schema.

Another possibility is using something like PEG or OMeta to pattern match against a data structure, this can allow us to specify the recursive nature of the data structure using grammar DSL.

http://schema.org/