advisory-database icon indicating copy to clipboard operation
advisory-database copied to clipboard

Add some basic linting

Open di opened this issue 2 years ago • 2 comments

While most advisories are automatically generated, occasionally they will be hand-written (e.g. https://github.com/pypa/advisory-database/pull/72/).

It would be nice to add some basic linting that ensures files are correctly formatted and have the minimum required fields, and run this on a new PR.

di avatar May 24 '22 18:05 di

OSV provides a JSON schema here, so validating against that wouldn't be too hard 🙂

woodruffw avatar May 24 '22 21:05 woodruffw

+1 to this! A JSON schema based validator should be trivial.

oliverchang avatar May 25 '22 04:05 oliverchang