MCPcopy Index your code
hub / github.com/openai/plugins / _require_list

Function _require_list

plugins/codex-security/scripts/finalize_scan_contract.py:130–134  ·  view source on GitHub ↗
(payload: dict[str, Any], key: str, context: str)

Source from the content-addressed store, hash-verified

128
129
130def _require_list(payload: dict[str, Any], key: str, context: str) -> list[Any]:
131 value = payload.get(key)
132 if not isinstance(value, list):
133 raise ContractError(f"{context}.{key}: expected an array")
134 return value
135
136
137def _require_str(payload: dict[str, Any], key: str, context: str) -> str:

Callers 5

_enrich_findingsFunction · 0.85
_validate_findingFunction · 0.85
_validate_coverageFunction · 0.85
_validate_manifestFunction · 0.85
_validate_findingsFunction · 0.85

Calls 2

ContractErrorClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected