Support separate validation and casting for date, time, and datetime fields#31
Merged
Support separate validation and casting for date, time, and datetime fields#31
Conversation
…fields - Updated type validation to distinguish between `date`, `time`, and `datetime` attributes. - Revised documentation, including translation files, to clarify requirements for each date-related type. - Adjusted multiple tests to reflect type-specific validation and casting logic. - Enhanced `CastModifier` and `TypeValidator` handling to ensure precise behavior for conversions and validations across `date`, `time`, and `datetime` attributes.
…tetime types - Updated casting logic to include separate handling for `date`, `time`, and `datetime` types, adding specific conversions and validations (e.g., string to date, time to integer). - Revised `transformation.md` and other documentation to reflect the changes and ensure clarity on type-specific behavior. - Extended test coverage to verify correct processing of `date`, `time`, and `datetime` attributes, including both input and output scenarios. - Adjusted existing specifications to align with the updated type definitions and transformations.
- Added a `rubocop:disable Metrics/ClassLength` directive to suppress warnings about the length of the `CastModifier` class. - Ensures compliance with RuboCop while maintaining existing functionality and structure.
- Replaced all occurrences of `datetime` with `time` across DTOs, specifications, and documentation to standardize handling. - Ensured `time` attributes support type casting to string or integer where applicable (e.g., ISO8601 or Unix timestamp). - Updated tests to reflect changes in `time` handling and added validations for new casting options. - Revised migration guides, API references, and examples to align with the updated `time` type usage.
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.