gripmock icon indicating copy to clipboard operation
gripmock copied to clipboard

Fix inability to handle files with a trailing newline

Open richardbrodie opened this issue 2 years ago • 0 comments

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.

richardbrodie avatar Apr 08 '24 08:04 richardbrodie