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

Function test_array_schema

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

Source from the content-addressed store, hash-verified

228
229
230def test_array_schema():
231 schema = {
232 "type": "array",
233 "items": {"type": "string"},
234 "minItems": 2,
235 "description": "A list of strings",
236 }
237 result = transform_schema(schema)
238 assert result == snapshot(
239 {
240 "type": "array",
241 "description": """\
242A list of strings
243
244{minItems: 2}\
245""",
246 "items": {"type": "string"},
247 }
248 )
249
250
251def test_string_schema_with_format_and_default():

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected