Schematics validator

def validate_zip_code(self, value):
        """ Schematics validator """

        if not Type.ZIPCODE_REGEX.match(value):
            raise ValidationError(self.messages['zip_code'])
        return value