Skip to content

Conversation

@anuraagkolli
Copy link

Added input validation to FirstSearchNode and ReflectionNode in MediaEngine/nodes/search_node.py. Introduced an InputValidator class that checks types, enforces length limits (title: 500 chars, content: 10k chars), sanitizes strings, validates JSON structure, and provides clear error messages. Both nodes now validate and sanitize inputs before processing, improving error handling and preventing invalid data from reaching downstream logic. The validator also warns about unknown fields while maintaining backward compatibility.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. improvement New feature or request labels Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant