Check rows against the weights contract before writing them
Source:R/weights_contract.R
validate_weights_table.RdVerifies that a data frame destined for calib_weights or
calib_weights_fit has a valid model, contains no column the contract does
not know, has every key and non-nullable column filled, and leaves empty the
columns that belong to the other model. Stops with a message listing the
problems, so a bad batch is caught before it reaches the database.