-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add validation, that IdentificationDateTime
is German midnight
#42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This pull request adds a custom validation attribute to ensure that a DateTimeOffset value is at German midnight and updates tests and model documentation accordingly.
- Introduces the GermanMidnightValidationAttribute to verify that the provided DateTimeOffset corresponds to midnight in German local time.
- Adds tests to validate the serialization of the German timezone and the correct behavior of the validation attribute.
- Updates the IdentificationParameter model by applying the new validation attribute and adding related documentation.
Reviewed Changes
File | Description |
---|---|
MaLoIdentModels/MaLoIdentModels/Validation/GermanMidnightValidationAttribute.cs | Implements a new attribute for validating German midnight. |
MaLoIdentModels/MaLoIdentModelsTests/v1Tests/SerializeGermanTimezoneInfo.cs | Tests the serialization and deserialization of the German timezone information. |
MaLoIdentModels/MaLoIdentModelsTests/v1Tests/DateTimeOffsetDeserializationTests.cs | Adds theory tests to check validation of German midnight times. |
MaLoIdentModels/MaLoIdentModels/v1/IdentificationParameter.cs | Applies the new validation attribute and updates documentation for clarity. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
MaLoIdentModels/MaLoIdentModels/v1/IdentificationParameter.cs:14
- [nitpick] The XML summary for IdentificationParameter is empty; please add a meaningful description that clarifies the purpose of this property.
/// <summary>
MaLoIdentModels/MaLoIdentModels/Validation/GermanMidnightValidationAttribute.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.