Skip to content

Harden schema validation error messages and docs - #161

Merged
maxulysse merged 4 commits into
devfrom
json-schema-improvements
Oct 13, 2026
Merged

maxulysse merged 4 commits into
devfrom
json-schema-improvements

Conversation

@maxulysse

Copy link
Copy Markdown
Member

Summary

Implements the schema-hardening checklist from #107 (remaining PR 1 scope alongside #107/#101/#103):

  • nextflow_schema.json: errorMessage added to all pattern/range-bearing parameters (input, tools_bundle, tools, skip_tools, star_sjdbOverhang, star_genomeSAindexNbases, hisat2_build_memory); input mimetype fixed from text/csv to text/yaml; references_base_path given a real description and help text explaining the s3://ngi-igenomes/igenomes/ prefix rewrite; empty description/default leftovers removed from building_index_options.
  • schema_references.json: all 8 "errorMessage": "TODO" placeholders replaced with real messages (ASCAT fields, bed12, chr_dir, macs_gsize, mito_name).

Params coverage between main.nf and the schema verified in sync. No assets/schema_input.json exists — --input is validated via the schema keyword against schema_references.json, as intended.

Testing

  • Stub run: nextflow run . -profile test,docker --outdir /tmp/opencode/stub-results -stub — green (9 tasks)
  • tests/default.nf.test — green
  • prek run --all-files — green
  • Both schemas parse as valid JSON

Closes part of #107.

Generated by OpenCode

Add errorMessage coverage to nextflow_schema.json pattern-bearing
parameters, fix the input mimetype to text/yaml, document
references_base_path and its igenomes prefix-rewriting behaviour, and
replace the eight placeholder TODO error messages in
schema_references.json.

Generated by OpenCode
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 3e8a384

+| ✅ 216 tests passed       |+
#| ❔  12 tests were ignored |#
!| ❗   8 tests had warnings |!
Details

❗ Test warnings:

  • files_exist - File not found: .github/workflows/awsfulltest.yml
  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes
  • pipeline_todos - TODO string in usage.md: Add documentation about anything specific to running your pipeline. For general topics, please point to (and add to) the main nf-core website.
  • pipeline_todos - TODO string in output.md: Write this documentation describing your workflow's output

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 4.1.0
  • Run at 2026-10-13 14:42:30

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

❌ nf-test failed with latest Nextflow version

Note

Tests with Nextflow's latest version failed but it will not cause a CI workflow failure.
Please check if the failure is expected with newer (edge-)releases of Nextflow or if it needs fixing.

  • ❌ docker | latest-everything | Shard 3/7

See the full run for details.

@maxulysse
maxulysse merged commit f935a44 into dev Oct 13, 2026
34 of 36 checks passed
@maxulysse
maxulysse deleted the json-schema-improvements branch October 23, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant