Feature/new features - #11
Merged
Merged
Conversation
Implement 5 new validation functions to check string formats: - is_email(string) - Validate email address format - is_url(string) - Validate URL format (http, https, ftp, file) - is_ip(string) - Validate IPv4 and IPv6 addresses - is_uuid(string) - Validate UUID format - matches_regex(pattern, string) - Custom regex pattern matching Add comprehensive test coverage with 47 unit tests covering valid cases, invalid cases, edge cases, and error handling for all validation functions. Update documentation with examples and practical use cases for configuration validation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implement 6 new data parsing functions for working with structured data: - parse_json(string) - Parse JSON string into object - parse_yaml(string) - Parse YAML string into object - parse_toml(string) - Parse TOML string into object - read_json_file(path) - Read and parse JSON file - read_yaml_file(path) - Read and parse YAML file - read_toml_file(path) - Read and parse TOML file Add comprehensive test coverage with 33 unit tests covering parsing, file reading, security restrictions, and error handling for all formats. Extract validate_path_security() as public helper function in filesystem module for reuse across file-reading functions. Update documentation with detailed examples showing how to parse data from strings and files, including practical multi-format configuration example. All file-reading functions respect the same security restrictions as other filesystem functions (relative paths only, no parent directory traversal unless --trust mode enabled). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11 +/- ##
==========================================
- Coverage 88.25% 88.12% -0.14%
==========================================
Files 9 11 +2
Lines 281 463 +182
==========================================
+ Hits 248 408 +160
- Misses 33 55 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.