Skip to content
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

Merged
merged 7 commits into from
Mar 7, 2025

Conversation

hf-kklein
Copy link
Contributor

No description provided.

Copy link
Contributor

@Copilot Copilot AI left a 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>

@hf-kklein hf-kklein enabled auto-merge (squash) March 7, 2025 09:32
@hf-kklein hf-kklein merged commit ae9a97d into main Mar 7, 2025
8 checks passed
@hf-kklein hf-kklein deleted the validation branch March 7, 2025 09:35
Copy link
Contributor

@JonasSchneegans JonasSchneegans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants