-
Notifications
You must be signed in to change notification settings - Fork 109
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
Boleto Validator - Support "convenio" and return which partial is wrong #55
Comments
cc/ @hyanmandian |
Hello @renatoagds, we are working in a fork project to refactoring the entire project and we plan to create 2 separated functions for that: About Today I will create a branch with this fork and you could work with us :D Thanks for the ideas and sorry for the delay. |
Hey @renatoagds can you check next branch and confirm if we fixed your issue? |
@hyanmandian for sure! will test today and let you know. |
@hyanmandian Confirming that's not the expected.
Codesandbox that I used: https://codesandbox.io/s/brazilian-utils-rc-4qrj4 Can I help with the requested features in next? |
Yes, I can help! What you think to add a second param to "config" the expected return? Something like:
I think that is better because we don't break our current API and it's work for all packages we have. |
About |
That's exactly what I was thinking about. We could call this new param
Why do you think this is necessary? That's some case that wouldn't use |
I think is better to have 3 packages: |
Sounds good! 🚀 |
This issue propose 2 features:
Add support for "convenio" in "boleto" validator, since it related formatter (
format-boleto
) supports "convenio"Returns which partial is wrong in
is-valid-boleto
. To avoid break the current contract, we could just add a second parameter, that will be a flag to turn on this feature.I could work on both, just checking if are valid features
The text was updated successfully, but these errors were encountered: