Skip to content

Support separate validation and casting for date, time, and datetime fields#31

Merged
afuno merged 4 commits intomainfrom
feature/date_time
Nov 25, 2025
Merged

Support separate validation and casting for date, time, and datetime fields#31
afuno merged 4 commits intomainfrom
feature/date_time

Conversation

@afuno
Copy link
Member

@afuno afuno commented Nov 25, 2025

No description provided.

…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.
@afuno afuno added this to the v1.0.0 milestone Nov 25, 2025
@afuno afuno self-assigned this Nov 25, 2025
@afuno afuno added the feature label Nov 25, 2025
- 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.
@afuno afuno marked this pull request as ready for review November 25, 2025 20:41
@afuno afuno merged commit 40a64b9 into main Nov 25, 2025
23 checks passed
@afuno afuno deleted the feature/date_time branch November 25, 2025 20:42
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.

1 participant