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

Fix inability to handle files with a trailing newline #163

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

richardbrodie
Copy link

Support for json arrays in the stub files was added previously, but it only worked with array files that did not end with a newline or files only containing a single non-array stub definition. Since all files written on linux will typically end in a newline this PR adds a rudimentary input sanitisation step while reading the file which fixes this.

Also tidy up some deprecations and add some more helpful error messages.

Richard Brodie and others added 2 commits April 8, 2024 09:57
Support for json arrays in the stub files was added previously, but it
only worked with array files that did not end with a newline or files
only containing a single non-array stub definition. Since all files
written on linux will typically end in a newline this PR adds a
rudimentary input sanitisation step while reading the file which fixes
this.

Also tidy up some deprecations and add some more helpful error messages.
@jekiapp jekiapp merged commit 76513e0 into tokopedia:master Aug 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants