()
| 182 | |
| 183 | |
| 184 | def 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": """\ |
| 196 | A list of strings |
| 197 | |
| 198 | {minItems: 2}\ |
| 199 | """, |
| 200 | "items": {"type": "string"}, |
| 201 | } |
| 202 | ) |
| 203 | |
| 204 | |
| 205 | def test_string_schema_with_format_and_default(): |
nothing calls this directly
no test coverage detected