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

Function test_array_schema

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

Source from the content-addressed store, hash-verified

182
183
184def test_array_schema():
185 schema = {
186 "type": "array",
187 "items": {"type": "string"},
188 "minItems": 2,
189 "description": "A list of strings",
190 }
191 result = transform_schema(schema)
192 assert result == snapshot(
193 {
194 "type": "array",
195 "description": """\
196A list of strings
197
198{minItems: 2}\
199""",
200 "items": {"type": "string"},
201 }
202 )
203
204
205def test_string_schema_with_format_and_default():

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected