Skip to content

Add field-level validation for all string fields#12

Merged
enaboapps merged 1 commit intomainfrom
feature/field-validation-5
Feb 26, 2026
Merged

Add field-level validation for all string fields#12
enaboapps merged 1 commit intomainfrom
feature/field-validation-5

Conversation

@enaboapps
Copy link
Copy Markdown
Owner

Summary

  • Add check_str helper for consistent string length validation
  • Validate all string fields on LogEntry: user_id, session_id, request_id, error_name, error_stack, flow_id, dataset, ip_address, country
  • Existing message, tags, and step_index validation unchanged

Closes #5

Test plan

  • Verify each field rejects values exceeding its max length
  • Verify fields at or under the limit pass validation
  • Verify existing log calls still work unchanged

Validate length limits on user_id (100), session_id (100),
request_id (100), error_name (200), error_stack (10000),
flow_id (100), dataset (50), ip_address (100), and country (10).
Extracted common check_str helper to reduce repetition.

Closes #5
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/field-validation-5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@enaboapps enaboapps merged commit 8b4b3ba into main Feb 26, 2026
1 of 2 checks passed
@enaboapps enaboapps deleted the feature/field-validation-5 branch February 26, 2026 09:26
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.

2 participants