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

Function test_array_schema

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

Source from the content-addressed store, hash-verified

125
126
127def test_array_schema():
128 schema = {
129 "type": "array",
130 "items": {"type": "string"},
131 "minItems": 2,
132 "description": "A list of strings",
133 }
134 result = transform_schema(schema)
135 assert result == snapshot(
136 {
137 "type": "array",
138 "description": """\
139A list of strings
140
141{minItems: 2}\
142""",
143 "items": {"type": "string"},
144 }
145 )
146
147
148def test_string_schema_with_format_and_default():

Callers

nothing calls this directly

Calls 1

transform_schemaFunction · 0.90

Tested by

no test coverage detected