()
| 157 | |
| 158 | |
| 159 | def test_object_schema(): |
| 160 | schema = { |
| 161 | "type": "object", |
| 162 | "properties": { |
| 163 | "name": {"type": "string", "default": "John"}, |
| 164 | "age": {"type": "integer", "minimum": 0}, |
| 165 | }, |
| 166 | "required": ["name"], |
| 167 | "description": "Person object", |
| 168 | } |
| 169 | result = transform_schema(schema) |
| 170 | assert result == snapshot( |
| 171 | { |
| 172 | "type": "object", |
| 173 | "description": "Person object", |
| 174 | "properties": { |
| 175 | "name": {"type": "string", "description": "{default: John}"}, |
| 176 | "age": {"type": "integer", "description": "{minimum: 0}"}, |
| 177 | }, |
| 178 | "additionalProperties": False, |
| 179 | "required": ["name"], |
| 180 | } |
| 181 | ) |
| 182 | |
| 183 | |
| 184 | def test_array_schema(): |
nothing calls this directly
no test coverage detected