Skip to content

Conversation

@sindrekroknes
Copy link
Contributor

For cultures not using '.' as the decimal separator, JsonSchemaGenerator.ApplyRangeAttribute fails for Range attributes like this

[Range(typeof(decimal), "5.5", "10.5")]
public double Decimal { get; set; }

This PR fixes that by using InvariantCulture

Copy link
Collaborator

@lahma lahma left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@lahma lahma merged commit d8da9d6 into RicoSuter:master Jun 15, 2025
2 checks passed
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.

2 participants