code: def validate(self, val):
          
          self.validate_type_only(val)
          self.validate_fields_only(val)
          return val
docs: For a val to pass validation, val must be of the correct type and have
          all required fields present.