nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
241 stars 190 forks source link

Update schema builder to use JSON draft 2020-12 #2784

Open mirpedrol opened 8 months ago

mirpedrol commented 8 months ago

Description of feature

nf-validation v2.0 uses the latest JSON Schema draft 2020-12

Prior to re-writing the nf-core schema builder, we should update the basis to make it compatible with the new version of nf-validation. That is:

nf-validation migration docs

ewels commented 8 months ago

Should be able to do this with a quick string regex on the returned JSON from the web builder, before saving locally.

alvaromartmart commented 3 months ago

Isn't $defs the correct keyword in the new schema and not defs? https://json-schema.org/draft/2019-09/release-notes#keyword-changes