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.
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/