Skip to content

fix: Handle bool/string ambiguity in Claude IsVulnerable response - #218

Merged
k37y merged 1 commit into
mainfrom
fix-isvulnerable-bool
Jul 31, 2026
Merged

fix: Handle bool/string ambiguity in Claude IsVulnerable response#218
k37y merged 1 commit into
mainfrom
fix-isvulnerable-bool

Conversation

@k37y

@k37y k37y commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Claude sometimes returns IsVulnerable as a JSON bool (true/false) instead of a string ("true"/"false"), causing unmarshal failures. Use json.RawMessage to accept either type and normalize to string via GetIsVulnerable().

Claude sometimes returns IsVulnerable as a JSON bool (true/false)
instead of a string ("true"/"false"), causing unmarshal failures.
Use json.RawMessage to accept either type and normalize to string
via GetIsVulnerable().

Signed-off-by: Vinu K <kevy.vinu@gmail.com>
@k37y
k37y merged commit 60b426b into main Jul 31, 2026
1 check passed
@k37y
k37y deleted the fix-isvulnerable-bool branch July 31, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant