You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(graphrag): pin why the field-type log is safe, and the bool choice
Review asked whether a non-dict response can reach the new logging line and
raise on .items(). It cannot. The two re.sub calls above the parse strip
everything outside the outermost braces, so a reply with no braces is reduced
to "" and json.loads rejects it before the schema check runs. Anything that
survives both regexes starts with "{", so json.loads returns a dict or raises.
Pinned with a parametrized case over [], a string array, a bare number and null.
Review also asked to reject a boolean rating. Keeping it accepted, and pinning
that with a test instead. Nothing reads the rating, so rejecting the value would
throw away a usable title, summary and findings, which is the loss this check
caused to begin with.
0 commit comments