()
| 125 | |
| 126 | |
| 127 | def 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": """\ |
| 139 | A list of strings |
| 140 | |
| 141 | {minItems: 2}\ |
| 142 | """, |
| 143 | "items": {"type": "string"}, |
| 144 | } |
| 145 | ) |
| 146 | |
| 147 | |
| 148 | def test_string_schema_with_format_and_default(): |
nothing calls this directly
no test coverage detected