-
Notifications
You must be signed in to change notification settings - Fork 0
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
Single string "author" field leads to MismatchedInputException: Cannot construct instance of Person #5
Comments
Workaround can be removed when jqassistant-plugin/jqassistant-npm-plugin#5 is fixed.
Something similar might also apply to the field "contributors". Here is the error message I get when scanning package.json of ant-design:
|
Workaround can be removed when jqassistant-plugin/jqassistant-npm-plugin#5 is fixed.
I also noticed some package.json files are not 100% compliant and plugin skips scanning the whole package.json file. Surprisigly npm itself somehow ignores those imperfect elements of package.json file but doesn't reject the file. I was wondering if scanner can have same approach. If there is an element like "author" which doesn't match with schema, it ignores it and show the warning but contine scanning the package.json file. |
@hmozaffari, i'd prefer to first support the standard and having an option comparable to the "continue-on-error" separately. A fail fast approach makes it possible to uncover issues like thi. Ignoring/Skipping issues would make it hard to find those kind of bugs. For example, in this case, someone would most probably not even think about the "author" field or that it is always empty. This would be hard to detect and debug. A clear and early error message is a pity at first glance, but will eventually safe you a lot of time and give you an overall better quality |
Fixed with #11 |
Hi 👋,
i've got the following error message when trying to scan react-router-6.24.0 router package.json.
Attached as file directly: package.json
StackTrace
Plugin Configuration
This is my plugins configuration inside the jqassistant yaml file:
These are my plugins:
jQAssistant Version
I'm using jqassistant-commandline-neo4jv5-2.3.1-distribution.zip on Mac.
Idea
Thanks 🙏
The text was updated successfully, but these errors were encountered: