Connect to an API, bring down values in JSON format, and query specific fields to ensure settings are in place correctly.
Implement validate_settings(payload, checks). Each check contains a dot-separated path, with * matching every element of a JSON object or array, and an expected value. Return one result per check with its path, status, and all values found. Use ok, missing, or mismatch as statuses.
payload contains only JSON-compatible valuespath and a JSON-compatible expected value*def validate_settings(payload, checks):