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!

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