🚀 Feature: Option to get the valid fields returned? #51
Labels
status: in discussion
Not yet ready for implementation or a pull request
type: feature
New enhancement or request 🚀
Hi there, I'm using this module as part of a bigger validator for Ghost themes.
After I've checked that the package.json is valid, I want to use some of the fields to inform my report (name, version, description, etc) and eventually I'd like to add a few extra validations of my own which are Ghost-specific.
At the moment, I end up having to do some work twice. I can't parse the JSON and pass pre-parsed JSON to package.json-validator as it expects a string, but I also don't believe it's currently possible to get the parsed JSON back from PJV to do further work on.
I'm happy to submit a PR, but thought I'd check first, would the option to get the valid JSON back be something that would be accepted? Any thoughts or recommendations on naming or approach?
The text was updated successfully, but these errors were encountered: