Data Validators
In this section you will learn how to add validations to the Osmos Uploader schema fields.
{
"name": "LastName",
"displayName": "LastName",
validator: async (rows) => {
return rows.map(row => {
if (row[2] === 'Bob') {
return {
errorMessage: 'Last name cannot be "Bob"'
};
}
return true;
})
}
}
Last updated
Was this helpful?
