Closed nOBITa3001 closed 1 year ago
I was able to reproduce the problem with your code and data above. I will look into it as soon as possible.
I fixed the problem. In the process, the code for node iteration has been massively simplified. It should be more readable now.
Thank you very much for the fix. I will test it asap and keep you posted on the result!
@shogg Verified, the change works like a charm! Thank you very much 👍
Hello @shogg
There is an issue with the parser that could not provide an array of SG4 - please see a specification below, if a current tag is the same as the previous one
baplie-specification - following this - https://www.truugo.com/edifact/d95b/baplie/
structs
function
testing
The above test will fail because the length of "DangerousGoods" is 2 and the second value will override the first value
Found the problem with this line of code https://github.com/shogg/edifact/blob/696b71b84b31470bdd15f6a48cca58fdac678852/spec/node.go#L159
As you can see data below that there is no
FTX
tag between the first and secondDGS
According to the specification above, theFTX
tag, under SG4, is conditional/optional so I expect the parser will return 3 items for this inputCould you please assist me with this problem?