-
Notifications
You must be signed in to change notification settings - Fork 176
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
Do not validate .model.json files with no content/whitespace only #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! Left some comments.
We should also add a test for this; you can see how tests are written here. Add a project with an empty .model.json
file in it, assert that the tree looks correct, then write to the file with a new, valid .model.json
. After the change registers, assert that the new tree looks correct.
This reverts commit 0aef16e.
Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
…jo-rbx#420) * Ignore empty/whitespace-only model.json files * Ignore no return value from model.json files during snapshot * Use str::from_utf8 instead of String::from_utf8 * Revert "Ignore no return value from model.json files during snapshot" This reverts commit 0aef16e. * Add test for empty .model.json files * Change empty .model.json check method Co-authored-by: Lucien Greathouse <me@lpghatguy.com> * Format code with cargo fmt * Use raw string instead Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
Closes #415