Function retain_schema_map
Source pub fn retain_schema_map(
schema: &mut Value,
key: &str,
used_names: &BTreeSet<String>,
)
Expand description
Retains only referenced entries in a root schema map.
§Arguments
schema: Root schema containing the schema map.
key: Schema-map key, such as definitions or $defs.
used_names: Entry names that should remain in the map.
§Returns
Returns no value; the map is pruned in place.
§Examples