(&mut self, schema: &mut Schema)
| 21 | |
| 22 | impl Transform for AnyOfToOneOf { |
| 23 | fn transform(&mut self, schema: &mut Schema) { |
| 24 | if let Some(any_of) = schema.remove("anyOf") { |
| 25 | schema.insert("oneOf".to_string(), any_of); |
| 26 | } |
| 27 | transform_subschemas(self, schema); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | fn main() { |
nothing calls this directly
no outgoing calls
no test coverage detected