Validate and serialize the value.

    This is the default implementation

def serialize(self, value, entity=None, request=None):
    """ Validate and serialize the value.

    This is the default implementation
    """

    ret = self.from_python(value)
    self.validate(ret)
    self.run_validators(value)
    return ret