MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / transform

Method transform

src/bin/generate_config_schema.rs:23–28  ·  view source on GitHub ↗
(&mut self, schema: &mut Schema)

Source from the content-addressed store, hash-verified

21
22impl 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
31fn main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected