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

Function test_array_schema

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected