INNER CODE UNIT · Python

run

jupyterhub/zero-to-jupyterhub-k8s · tools/generate-json-schema.py:46

def run():
    # Using these sets, we can validate further manually by printing the results
    # of set operations.
    with open(schema_yaml) as f:
        schema = yaml.safe_load(f)

    # Drop what isn't relevant for a values.schema.json file packaged with the
    # Helm chart, such as the description keys only relevant for our
    # configuration reference.
    clean_jsonschema(schema)

    # dump schema to values.schema.json
    with open(values_schema_json, "w") as f:
        json.dump(schema, f)

    print("jupyterhub/values.schema.json created")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…