()
| 177 | |
| 178 | |
| 179 | def test_allof(): |
| 180 | schema = { |
| 181 | "allOf": [ |
| 182 | {"type": "object", "properties": {"name": {"type": "string"}}}, |
| 183 | {"type": "object", "properties": {"age": {"type": "integer", "minimum": 0}}}, |
| 184 | ] |
| 185 | } |
| 186 | result = transform_schema(schema) |
| 187 | assert result == snapshot( |
| 188 | { |
| 189 | "allOf": [ |
| 190 | { |
| 191 | "type": "object", |
| 192 | "properties": {"name": {"type": "string"}}, |
| 193 | "additionalProperties": False, |
| 194 | }, |
| 195 | { |
| 196 | "type": "object", |
| 197 | "properties": {"age": {"type": "integer", "description": "{minimum: 0}"}}, |
| 198 | "additionalProperties": False, |
| 199 | }, |
| 200 | ] |
| 201 | } |
| 202 | ) |
| 203 | |
| 204 | |
| 205 | def test_object_schema(): |
nothing calls this directly
no test coverage detected