JoshuaKGoldberg / package.json-validator

Tools to validate package.json files
MIT License
107 stars 26 forks source link

package-json-validator returns validation errors for valid field values #57

Closed lkisac closed 5 months ago

lkisac commented 7 years ago

Validating mysql package.json through http://package-json-validator.com returns invalid for repository shortcut syntax and npm auto-populated fields.

Results:

{ "valid": false, "errors": [ "Url not valid for repository: mysqljs/mysql" ], "warnings": [ "Missing recommended field: keywords", "Missing recommended field: bugs" ], "recommendations": [ "Missing optional field: homepage" ] }

Reference pull request #1630

JoshuaKGoldberg commented 5 months ago

"errors": ... "Url not valid for repository: mysqljs/mysql"

Alas, duplicate of #29.

"warnings": ... "recommendations": ...

That's why they're not errors 🙂. They're not required, but are generally recommended to fill in.

Closing this as a duplicate, but someone please yell at me if I've misinterpreted. Cheers! 🧡