citation-file-format / cffconvert

Command line program to validate and convert CITATION.cff files.
Apache License 2.0
95 stars 28 forks source link

Look into showing deprecation warnings #360

Open jspaaks opened 1 year ago

jspaaks commented 1 year ago

A recent draft of JSONSchema has a key deprecated, it would be useful to annotate some keys in the schema with it, and have its corresponding comment show up when validating.

https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.3

jspaaks commented 1 year ago

I experimented a bit with updating the schema to 2019-09, annotating the commit key as deprecated, and then creating a CITATION.cff that uses commit. However, nothing shows up in the terminal.

Also tried with https://pypi.org/project/check-jsonschema/, that also didn't show any deprecation warnings.

Maybe there is more stuff in the Python objects, haven't looked at that yet.