The schema that we created is a technical description of all the criteria that we need to check against our data. This will usually be defined as a dictionary with the name of the item as the key and a dictionary of properties, such as the type or bounds on the value in a dictionary, as the value. For example, in step 1, we defined a schema for floating-point numbers that limits the numbers so that they're between the values of -1 and 1. Note that we include the coerce key, which specifies the type that the value should be converted into during the validation. This allows us to pass in data that's been loaded from a CSV document, which contains only strings, without having to worry about its type.
The Validator object takes care of parsing documents so that they're validated and checking the data they contain against all the criteria described by the schema. In this recipe, we provided the schema to the Validator object when it was created...