MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_anyof_schema

Function test_anyof_schema

tests/lib/_parse/test_transform.py:45–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_anyof_schema():
46 schema = {
47 "anyOf": [
48 {"type": "string"},
49 {"type": "integer", "minimum": 1},
50 ]
51 }
52 result = transform_schema(schema)
53 assert result == snapshot(
54 {
55 "anyOf": [
56 {"type": "string"},
57 {
58 "type": "integer",
59 "description": "{minimum: 1}",
60 },
61 ]
62 }
63 )
64
65
66def test_enum_schema():

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected