45 lines
1.4 KiB
Python
45 lines
1.4 KiB
Python
import sys, os
|
|||
|
|
sys.path.insert(0, os.path.abspath("."))
|
||
|
|
from scratch.detailed_param_check import report
|
||
|
|
|
||
|
|
print("="*80)
|
||
|
|
print("MISSING ON NEXUS (Documented in new MD, but not in Nexus data.json)")
|
||
|
|
print("="*80)
|
||
|
|
|
||
|
|
missing_on_nexus = []
|
||
|
|
for r in report:
|
||
|
|
for d in r["top_level_diffs"]:
|
||
|
|
if d["type"] == "MISSING_ON_NEXUS":
|
||
|
|
missing_on_nexus.append((r["section"], r["api_title"], r["md_header"], d))
|
||
|
|
|
||
|
|
print(f"Total count: {len(missing_on_nexus)}")
|
||
|
|
# Group by API
|
||
|
|
by_api = {}
|
||
|
|
for sec, title, md_hdr, d in missing_on_nexus:
|
||
|
|
key = f"[{sec}] {title} (MD: {md_hdr})"
|
||
|
|
by_api.setdefault(key, []).append(d["param"])
|
||
|
|
|
||
|
|
for k, params in by_api.items():
|
||
|
|
print(f"\n{k}:")
|
||
|
|
print(f" Missing params ({len(params)}): {', '.join(params)}")
|
||
|
|
|
||
|
|
print("\n" + "="*80)
|
||
|
|
print("MISSING IN MD (Shown on Nexus data.json, but not in new MD table)")
|
||
|
|
print("="*80)
|
||
|
|
|
||
|
|
missing_in_md = []
|
||
|
|
for r in report:
|
||
|
|
for d in r["top_level_diffs"]:
|
||
|
|
if d["type"] == "MISSING_IN_MD":
|
||
|
|
missing_in_md.append((r["section"], r["api_title"], r["md_header"], d))
|
||
|
|
|
||
|
|
print(f"Total count: {len(missing_in_md)}")
|
||
|
|
by_api_md = {}
|
||
|
|
for sec, title, md_hdr, d in missing_in_md:
|
||
|
|
key = f"[{sec}] {title} (MD: {md_hdr})"
|
||
|
|
by_api_md.setdefault(key, []).append(d["param"])
|
||
|
|
|
||
|
|
for k, params in by_api_md.items():
|
||
|
|
print(f"\n{k}:")
|
||
|
|
print(f" Missing in MD ({len(params)}): {', '.join(params)}")
|