enforce a schema and perform transformations on data from APIs