()
| 203 | |
| 204 | |
| 205 | def test_object_schema(): |
| 206 | schema = { |
| 207 | "type": "object", |
| 208 | "properties": { |
| 209 | "name": {"type": "string", "default": "John"}, |
| 210 | "age": {"type": "integer", "minimum": 0}, |
| 211 | }, |
| 212 | "required": ["name"], |
| 213 | "description": "Person object", |
| 214 | } |
| 215 | result = transform_schema(schema) |
| 216 | assert result == snapshot( |
| 217 | { |
| 218 | "type": "object", |
| 219 | "description": "Person object", |
| 220 | "properties": { |
| 221 | "name": {"type": "string", "description": "{default: John}"}, |
| 222 | "age": {"type": "integer", "description": "{minimum: 0}"}, |
| 223 | }, |
| 224 | "additionalProperties": False, |
| 225 | "required": ["name"], |
| 226 | } |
| 227 | ) |
| 228 | |
| 229 | |
| 230 | def test_array_schema(): |
nothing calls this directly
no test coverage detected