Loadash warning
jfoclpf opened this issue · 4 comments
I'm getting this error/warning after running
npx lint-openapi src/public/openapi.yaml -e -r docs/ibm-lint-openapi-rules.yaml
$ npx lint-openapi src/public/openapi.yaml -e -r docs/ibm-lint-openapi-rules.yaml
'lodash/isPlainObject' is imported by lodash/isPlainObject?commonjs-external, but could not be resolved – treating it as an external dependency
'lodash/isEqual' is imported by lodash/isEqual?commonjs-external, but could not be resolved – treating it as an external dependency
'lodash/uniqWith' is imported by lodash/uniqWith?commonjs-external, but could not be resolved – treating it as an external dependency
'lodash/pickBy' is imported by lodash/pickBy?commonjs-external, but could not be resolved – treating it as an external dependency
I'm using v 0.97.3
I can reproduce with the latest version (1.0.7) as well. We will be looking into this soon. It seems to specifically happen when using a custom, YAML-formatted ruleset. As a temporary alleviation, you can define the ruleset as JS file. The warnings don't show in that case, for some reason. e.g.
const ibm = require('@ibm-cloud/openapi-ruleset');
module.exports = {
extends: ibm,
rules: {
'ibm-parameter-casing-convention': 'info',
},
};
🎉 This issue has been resolved in version 1.6.1 🎉
The release is available on npm package (@latest dist-tag)
Your semantic-release bot 📦🚀
🎉 This issue has been resolved in version 1.2.1 🎉
The release is available on npm package (@latest dist-tag)
Your semantic-release bot 📦🚀
🎉 This issue has been resolved in version 1.6.1 🎉
The release is available on npm package (@latest dist-tag)
Your semantic-release bot 📦🚀