Can I apply DataSift validations or transformations to arrays, Collections, Maps…?
Yes, and you can process these types of objects in two different ways: • If you want to validate them as a whole you can use (or create) any validator / transformer which defines an array, a Collection, a Map… as one of its data parameters, and process it the way you want as a whole entity, like you would do with any other piece of data. • If you want to iterate through the elements of an array or Collection, or the entries of a Map, you can use DataSift’s iteration mechanism (see User Guide). Both for validation and transformation specs there are three predefined iterating validators/transformers called ArrayIterator, CollectionIterator and MapIterator (see the Predefined Entities reference documentation) which allow you to define nested validations or transformations that these iterators will apply on each of the elements of the arrays, Collections or Maps they may get as targets.