MCPcopy
hub / github.com/dataelement/Clawith / model_validate

Method model_validate

backend/tests/test_auth.py:199–200  ·  view source on GitHub ↗
(cls, obj)

Source from the content-addressed store, hash-verified

197 setattr(self, k, v)
198 @classmethod
199 def model_validate(cls, obj):
200 return cls(id=str(obj.id), email=obj.email)
201
202 with patch("app.api.auth.UserOut", new=DummyUserOut):
203 result = await auth_api.get_me(current_user=user)

Callers 15

get_dingtalk_channelFunction · 0.80
get_sso_session_statusFunction · 0.80
list_postsFunction · 0.80
create_postFunction · 0.80
get_postFunction · 0.80
create_commentFunction · 0.80
_serialize_agent_outFunction · 0.80
_agent_to_outFunction · 0.80
_agents_to_outFunction · 0.80
feishu_oauth_callbackFunction · 0.80
configure_channelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected