Skip to content

Fix test for invariant culture parsing #62631

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

Merged
merged 1 commit into from
Jul 9, 2025

Conversation

marcominerva
Copy link
Contributor

@marcominerva marcominerva commented Jul 9, 2025

Updated the DecimalWithRange property in the CanValidateTypeWithParsableProperties test of the ValidationsGenerator.Parsable.cs class to include the ParseLimitsInInvariantCulture setting within the Range attribute. This change ensures consistent parsing of range limits across different locale settings. On my machine (which uses the it-IT culture), the original test failed due to a conversion issue.

Fixes #62627

Updated the `DecimalWithRange` property in the `ComplexTypeWithParsableProperties` class to include the `ParseLimitsInInvariantCulture` attribute in the `Range` attribute. This change ensures consistent parsing of range limits across different locale settings.
@github-actions github-actions bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Jul 9, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 9, 2025
@martincostello martincostello added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-validation Issues related to model validation in minimal and controller-based APIs and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Jul 9, 2025
@captainsafia captainsafia merged commit 4ebbb4b into dotnet:main Jul 9, 2025
29 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview7 milestone Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc community-contribution Indicates that the PR has been added by a community member feature-validation Issues related to model validation in minimal and controller-based APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CanValidateTypeWithParsableProperties test failure
3 participants