Skip to content

Conversation

@Fa-BRAIK
Copy link
Contributor

@Fa-BRAIK Fa-BRAIK commented Jan 8, 2025

No description provided.

@Fa-BRAIK Fa-BRAIK added the feature New feature! label Jan 8, 2025
@Fa-BRAIK Fa-BRAIK added this to the [v0.5] Data Validation milestone Jan 8, 2025
…tringRule for string validation with length constraints and corresponding tests
Moved unit tests for validation rules into a dedicated "Rules" subdirectory, updating namespaces accordingly. This improves organization and readability of test files, making it clearer which rules are being tested.
Introduce EmailRule for validating email addresses using regex, along with comprehensive unit tests. Update DateRule's validation messages for consistency and adjust corresponding test assertions.
Added SingularRule, AndRule, OrRule
Added validation messages tree
Renamed validation messages to validation message tree
Will return true only if value is null
Validation message is updated to specify that the attribute has to be nullable
Tested that SingularRule is functioning as expected: carrying out a ValidationRule or LogicalRule
Updated Arr and Collection and added flatten function (Not yet tested)
Switched default value for preserved keys in collapse function in Collection to false
@Fa-BRAIK
Copy link
Contributor Author

Would simplify that by relying on other library and simpify provide the ability to run validation using that.

@Fa-BRAIK Fa-BRAIK closed this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants