Files
Unified_Dashboard_Suite_Go/scratch/check_req_mismatches.py
T

25 lines
953 B
Python
Raw Normal View History

import sys, os
sys.path.insert(0, os.path.abspath("."))
from scratch.detailed_param_check import report
print("="*90)
print("EXACT PARAMETER REQUIRED VS OPTIONAL MISMATCHES")
print("="*90)
for r in report:
for d in r["top_level_diffs"]:
if d["type"] == "REQUIRED_MISMATCH":
p = d["param"]
print(f"- [{r['section']}] {r['api_title']}")
print(f" Endpoint: {r['api_url']}")
print(f" MD Section: {r['md_header']}")
print(f" -> Parameter '{p}': {d['detail']}\n")
for s in r.get("sub_ep_diffs", []):
for d in s["diffs"]:
if d["type"] == "REQUIRED_MISMATCH":
p = d["param"]
print(f"- [{r['section']}] {r['api_title']} -> Sub-Endpoint: {s['sub_title']}")
print(f" Sub-URL: {s['sub_url']}")
print(f" MD Section: {r['md_header']}")
print(f" -> Parameter '{p}': {d['detail']}\n")