-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: suport btrs (bai v3) files #118
base: master
Are you sure you want to change the base?
Conversation
Can we add a test verifying the fields of the version 3 file. Are there really no differences between v2 and v3? |
From a quick look at the BTRS file I have I think it's the same, it's also mentioned in the spec that in general the file format is the same, there are some difference in BTRS files requires changes to the parser. Maybe this can be merged with a warning of "btrs is experimental"? |
I've started on a BTRS test to verify we're parsing as expected. I'm using their examples and want to get all of that copied over in a test before we merge. Can you help out @omerlh ? I'll get chunks of the test added over today/tomorrow. |
Yeah sure I am taking a look now, let me see what I can do in the next hour or so |
Well I was mistaken, the files I have has version 3 in the header:
But it's actually BAI Take a look at the next line, in BAI2 it's group header and in BTRS it called "bank header". This BTRS line cannot be parsed correctly:
This is from the official example... So.. what I need is BAI2 parser that can eat fake BTRS files 😂 Do you want this repository to support BTRS parsing? Or have BTRS parser in a different repository? |
I'm thinking a moov-io/btrs repository would be better then. I could get behind a move towards pkg/bai2 and pkg/btrs subfolders of this repository too. |
Yeah that makes sense, just need something for weird banks that sends BTRS3 files that are actually bai2 🤷 |
I don't understand how you're getting BTRS3 files that are actually bai2. Are the files a mix of bai2 and BTRS records? |
I think it's just wrong version, so for my use case a flag like |
Does the current bai2 parser work with an invalid version? If not we can add an override to skip invalid version headers. BTR3 looks to need a new parser/project/package. |
Yes I agree about BTRS3 and the flag, if that's ok with you I can open a PR that will solve my issue :) |
Yea go ahead and open a PR for your issue. I'm back and will look over this PR. |
can we refresh this PR? |
fix #117