Descend `definitions` / validator wrappers to the `model` node holding the fields.
(schema: dict[str, Any])
| 118 | |
| 119 | |
| 120 | def _model_node(schema: dict[str, Any]) -> dict[str, Any]: |
| 121 | """Descend `definitions` / validator wrappers to the `model` node holding the fields.""" |
| 122 | node = schema |
| 123 | while node.get("type") != "model": |
| 124 | node = node["schema"] |
| 125 | return node |
| 126 | |
| 127 | |
| 128 | # Built once, lazily: `model -> (patched_validator, original_validator)`. The patched validator |
no test coverage detected