You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running one of the DBS specs (account-presentation-spec) through the converter and found that yaml validation failed on negative numbers in an example. If you look in the arrangements-with-balance-history-ex.json file, there's a section that looks like this:
Excellent find @dpbevin . Let us hope that jackson merges that PR quickly so we can update to the latest version. If this is going to take too long, we could try to switch to SnakeYaml
I tried running one of the DBS specs (account-presentation-spec) through the converter and found that yaml validation failed on negative numbers in an example. If you look in the arrangements-with-balance-history-ex.json file, there's a section that looks like this:
It is the valuePtc at the bottom (set to "-14") that gets generated to yaml as this:
You can see the difference between between "4" and -14.
I debugged the code and tracked it down to the Jackson YAML library (jackson-dataformat-yaml) that's used to generate the YAML.
The regex that's used to determine the quote rules doesn't handle negative numbers correctly. See https://github.com/FasterXML/jackson-dataformats-text/blob/d69291651114b9e7a2ccbe1a3a154f2b84f95b30/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java#L175
I'm working on a PR for the Jackson library and will link here once submitted.
The text was updated successfully, but these errors were encountered: