xlate / staedi

StAEDI - Streaming API for EDI: Java library featuring a reader/parser, writer/generator, and validation
Apache License 2.0
124 stars 35 forks source link

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

Closed Kaiawaia closed 9 months ago

Kaiawaia commented 9 months ago

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 commented 9 months ago

@Kaiawaia the fix for this is included in release 1.24.0

Kaiawaia commented 9 months ago

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