()
| 131 | |
| 132 | |
| 133 | def test_allof(): |
| 134 | schema = { |
| 135 | "allOf": [ |
| 136 | {"type": "object", "properties": {"name": {"type": "string"}}}, |
| 137 | {"type": "object", "properties": {"age": {"type": "integer", "minimum": 0}}}, |
| 138 | ] |
| 139 | } |
| 140 | result = transform_schema(schema) |
| 141 | assert result == snapshot( |
| 142 | { |
| 143 | "allOf": [ |
| 144 | { |
| 145 | "type": "object", |
| 146 | "properties": {"name": {"type": "string"}}, |
| 147 | "additionalProperties": False, |
| 148 | }, |
| 149 | { |
| 150 | "type": "object", |
| 151 | "properties": {"age": {"type": "integer", "description": "{minimum: 0}"}}, |
| 152 | "additionalProperties": False, |
| 153 | }, |
| 154 | ] |
| 155 | } |
| 156 | ) |
| 157 | |
| 158 | |
| 159 | def test_object_schema(): |
nothing calls this directly
no test coverage detected