helm-schema 0.0.4

Generate an accurate JSON schema for any helm chart
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use helm_schema_json_schema_walk::visit_subschemas_mut;
use serde_json::Value;

pub(super) fn strip_schema_descriptions(schema: &mut Value) {
    if let Some(object) = schema.as_object_mut() {
        object.remove("description");
    }
    visit_subschemas_mut(schema, &mut strip_schema_descriptions);
}

#[cfg(test)]
#[path = "tests/descriptions.rs"]
mod tests;