Skip to content

default decimal mark is point (.) when UNA segment is not present #406

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

Closed
Kaiawaia opened this issue Dec 7, 2023 · 2 comments · Fixed by #407
Closed

default decimal mark is point (.) when UNA segment is not present #406

Kaiawaia opened this issue Dec 7, 2023 · 2 comments · Fixed by #407
Assignees
Labels

Comments

@Kaiawaia
Copy link

Kaiawaia commented Dec 7, 2023

As mentioned in this discussion the default decimal mark is point(.) when the UNA segment is not present. This is a problem when you need another decimal mark (e.g. comma) for your locale decimal values.

To reproduce this bug you can delete an UNA segment and replace the decimal points with comma. Add a validation schema with base="decimal" in elementType for the decimal elements. You will get an validation error of type INVALID_CHARACTER_DATA.

@MikeEdgar
Copy link
Member

@Kaiawaia the fix for this is included in release 1.24.0

@Kaiawaia
Copy link
Author

@MikeEdgar the fix is working fine. Thanks for your really fast accomplishment.

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

Successfully merging a pull request may close this issue.

2 participants