Skip to content

Conversation

@afuno
Copy link
Member

@afuno afuno commented Jan 11, 2026

No description provided.

afuno added 7 commits January 11, 2026 17:05
- Replace Type.new(...).check with static Type.check class method
- Replace Types.new(...).validate! with static Types.validate method
- Return nil on success, Hash on failure (zero allocation happy path)
- Add compute_prepared_value as private class method
- Add build_errors_from to construct errors from validation data
- Update related validation base classes with YARD docs
- Update RBS type signatures
- Use shorthand keyword argument syntax in Types.validate call
- Use shorthand hash syntax in error data hash
- Add rubocop:disable directive for MethodLength
- Add ErrorBuilder concern with process_message and build_errors methods
- Remove inputs/validations/base.rb (no longer needed)
- Remove inputs/validations/errors.rb (consolidated)
- Remove maintenance/attributes/validations/base.rb (replaced by static methods)
- Refactor Required and Must validators to use ErrorBuilder concern
- Update Type validator with additional YARD documentation
- Update RBS type signatures for refactored classes
- Delete CheckErrors class (replaced by direct error handling)
- Delete Errors class (consolidated into ErrorBuilder)
- Move error processing logic to ErrorBuilder concern
- Simplify validation classes to return errors directly
- Update validation tools to handle nil/errors return pattern
- Update RBS type signatures for simplified structure
- Replace implicit truthiness with .present? for @first_error checks
- Replace .nil? with .blank? for error message checks
- Use direct assignment instead of ||= since break follows immediately
- Add directive to process_option methods in validation tools
- Remove unnecessary directive from call_check method
- Replace unless .nil? with if .present? for consistency
@afuno afuno added this to the v3.0.0 milestone Jan 11, 2026
@afuno afuno self-assigned this Jan 11, 2026
@afuno afuno added the feature label Jan 11, 2026
afuno added 3 commits January 11, 2026 21:00
- Document Required, Must, and Type validators with class-level docs
- Add usage examples showing DSL patterns
- Improve method documentation with param/return tags
- Mark internal helper methods as private_class_method
- Describe architecture decisions (zero allocations, early returns)
- Reword bullet points for clarity and consistency
- Focus on behavioral descriptions over implementation details
- Standardize return value description format
- Remove verbose Architecture sections from validators
- Condense Result and Outputs class documentation
- Keep essential usage examples and API documentation
@afuno afuno marked this pull request as ready for review January 11, 2026 14:53
@afuno afuno merged commit e1c8f99 into main Jan 11, 2026
37 checks passed
@afuno afuno deleted the feature/SRV-402/validation branch January 11, 2026 14:55
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