Tool argument validation is shallow #213

Open
opened 2026-11-21 12:36:53 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-core/src/tool.rs, schema check
What is hacky: only object type, required keys and primitive types; no nested/enum/format checks.
Proper fix: use the jsonschema crate.
Original comment: "ponytail: no nested/enum/format checks; swap for jsonschema crate if models send bad nested args."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-core/src/tool.rs, schema check What is hacky: only object type, required keys and primitive types; no nested/enum/format checks. Proper fix: use the `jsonschema` crate. Original comment: "ponytail: no nested/enum/format checks; swap for `jsonschema` crate if models send bad nested args." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the core label 2026-11-21 12:36:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#213