Skip to content
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

http: support validation options when creating a file through JSON #944

Closed
vxio opened this issue Jun 21, 2021 · 1 comment · Fixed by #950
Closed

http: support validation options when creating a file through JSON #944

vxio opened this issue Jun 21, 2021 · 1 comment · Fixed by #950
Labels

Comments

@vxio
Copy link
Member

vxio commented Jun 21, 2021

ACH Version: v1.9.2

What were you trying to do?
Create an ACH file from JSON through the HTTP server with validation options set.

What did you expect to see?
A successful request given the validation options.

@vxio
Copy link
Member Author

vxio commented Jun 21, 2021

We should be able to enable this by calling SetValidation in this block:

ach/server/files.go

Lines 171 to 176 in 0230442

// Read body as ACH file in JSON
f, err := ach.FileFromJSON(bs)
if f != nil {
req.File = f
}
req.parseError = err

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant