Skip to content

Conversation

@afuno
Copy link
Member

@afuno afuno commented Dec 27, 2025

No description provided.

…on details

- Revamped documentation for `Must`, `Min`, `Max`, `Inclusion`, and `Schema` classes, providing comprehensive usage examples, validation rules, and architectural insights.
- Introduced detailed comments for each method, outlining purpose, parameter descriptions, return values, and relevant notes.
- Made class structures clearer by improving abstraction layers and adding specific-purpose methods.
- Strengthened validation logic for dynamic options, including condition checks, error messaging, and normalization processes.
- Updated key sections such as "common_condition_with" logic in `Min`, `Max`, and `Inclusion` and improved schema handling.
@afuno afuno added this to the v.2.17.0 milestone Dec 27, 2025
@afuno afuno self-assigned this Dec 27, 2025
@afuno afuno added the polish label Dec 27, 2025
- Updated validation documentation for `Inclusion`, `Schema`, `Target`, `Format`, and `ConsistsOf` to improve clarity and reflect current functionality.
- Removed range support in `Inclusion` and emphasized arrays for inclusion sets.
- Clarified default value handling in `Target` and preserved array structure for class-typed attributes.
- Enhanced `Format` to better explain boolean validation and added new two-phase validation details.
- Simplified `ConsistsOf` examples and clarified presence checks for different attribute types.
- Clarified whether each dynamic option requires registration or is included by default.
- Updated `Min`, `Max`, `Target`, `Format`, `MultipleOf` to emphasize required registration for specific attribute types.
- Revamped `Inclusion`, `Schema`, `ConsistsOf` to reflect default inclusion and customization options.
- Improved examples with additional helper lists and customization insights.
- Simplified configuration examples for extending `hash_mode_class_names` in `Schema` and `collection_mode_class_names` in `ConsistsOf`.
- Aligned documentation with current functionality, removing redundant helper references.
- Highlighted straightforward usage of custom types like `CustomHashClass` and `ActiveRecord::Relation`.
@afuno afuno marked this pull request as ready for review December 29, 2025 17:44
@afuno afuno merged commit d4c0a65 into main Dec 29, 2025
37 checks passed
@afuno afuno deleted the polish/SRV-362/docs branch December 29, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants