()
| 228 | |
| 229 | |
| 230 | def 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": """\ |
| 242 | A list of strings |
| 243 | |
| 244 | {minItems: 2}\ |
| 245 | """, |
| 246 | "items": {"type": "string"}, |
| 247 | } |
| 248 | ) |
| 249 | |
| 250 | |
| 251 | def test_string_schema_with_format_and_default(): |
nothing calls this directly
no test coverage detected