Validate data against the schema.

        Args:
            data(dict): data structure to validate.

        Returns:
            dict: data as provided and defaults where defined in schema.

def validate(data):
        """
        Validate data against the schema.

        Args:
            data(dict): data structure to validate.

        Returns:
            dict: data as provided and defaults where defined in schema.
        """
        try:
            return Schema(Validator.SCHEMA).validate(data)
        except SchemaError as exception:
            logging.getLogger(__name__).error(exception)
            return None