Validate a field against a schema
validate_field(dt, col, field_schema, ...)
Arguments
- dt
data.table, the data.table to validate
- col
character, the column to validate
- field_schema
list, a list of schema values for the field
- ...
additional locals arguments to pass to the test