moov-io / metro2

Open Source Metro 2 consumer credit history report for credit report file creation and validation
https://moov-io.github.io/metro2/
Apache License 2.0
98 stars 46 forks source link

test data question #77

Closed junjiewang-sf closed 2 years ago

junjiewang-sf commented 3 years ago

Metro2 Version: v0.3.3

What were you trying to do? trying to play with API and understand metro2 format

What did you expect to see? https://github.com/moov-io/metro2/blob/master/test/testdata/unpacked_variable_file.json I tested validator with above test data from your repo, noticed totalConsumerSegmentsJ1 is 2 and validator returns error if I change it to 1 I'm a bit confused as I also don't find much explanation on this value in the guide provided by CDIA I was expecting it to be 1 since there is only one j1 item found, or is the base record also considered?

What did you see? see above

How can we reproduce the problem? N/A

Thank you

mfdeveloper508 commented 2 years ago

There is a error of generating trailer segment from header and base records