MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / Model

Class Model

tests/test_models.py:161–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160def test_strict_validation_unknown_fields() -> None:
161 class Model(BaseModel):
162 foo: str
163
164 model = parse_obj(Model, dict(foo="hello!", user="Robert"))
165 assert model.foo == "hello!"

Calls

no outgoing calls