Skip to content

Add a strict/warning-fail CLI mode for validate-data #29

@cmungall

Description

@cmungall

Problem

linkml-term-validator validate-data reports label mismatches as warnings, but there is currently no CLI flag to make warnings fail the process.

In CI, this forces downstream projects to add local wrappers that parse stdout/stderr and convert WARN output into a non-zero exit code. That is brittle and repo-specific.

Requested feature

Please add a native strict mode for validate-data, for example one of:

  • --strict
  • --fail-on-warnings

The behavior should be:

  • any warning causes a non-zero exit code
  • errors continue to be non-zero as they are today
  • successful validation with no warnings stays zero

Concrete repo impact

In monarch-initiative/dismech, we traced a bad HGNC ID/label pair that slipped through CI when warnings did not reliably hard-fail across validator versions. The current repo now carries a local shell wrapper solely to enforce warning-fail behavior until the CLI exposes it directly.

Native support would let downstream CI use standard tooling instead of custom wrappers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions