Access4LearningNA / specgen_input_na

Where we define the Unity data model.
Apache License 2.0
0 stars 0 forks source link

Drop xs:fractionDigits #159

Closed 4pins closed 1 year ago

4pins commented 3 years ago

xs:fractionDigits causes issues converting from JSON to validate XML.

The good news: Doesn't impact monetary values in Unity Bad news: Attendance, Percentage, FTE

4pins commented 3 years ago

So I can't find a maxFractionDigits to make this better, however we could use a regular expression. The 3 in the below example is where the value of the xs:fractionDigits would go.

Example: -?(\d+)?.?\d{0,3}

Matches: 14.32 51.63 10.50 10.5 10 -10 10.0 10.123 -14.32 -.32

Misses: 10.1234 23FB This is not the way

4pins commented 3 years ago

More Matches: 0.2 .2 -.3

4pins commented 3 years ago

Actually xs:fractionDigits already means this. https://www.w3.org/TR/xmlschema-2/#rf-fractionDigits

4pins commented 1 year ago

Any further conversation on this topic will be addressed in ticket: https://github.com/Access4LearningNA/specgen_input_na/issues/185