No description
  • Go 96%
  • Dockerfile 4%
Find a file
Nicolas Karolak 1d4ae439f6
fix: update module path to git.karolak.fr/nicolas/yamlscheck
Update go.mod module path and related URLs to allow installation
from the new git.karolak.fr location.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-03-28 09:25:27 +01:00
samples add pre-commit config 2025-11-20 10:17:33 +01:00
.build.yaml fix: update module path to git.karolak.fr/nicolas/yamlscheck 2026-03-28 09:25:27 +01:00
.editorconfig add pre-commit config 2025-11-20 10:17:33 +01:00
.gitignore rewrite in go 2025-11-18 17:39:22 +01:00
.hadolint.yaml add pre-commit config 2025-11-20 10:17:33 +01:00
.pre-commit-config.yaml fix: update module path to git.karolak.fr/nicolas/yamlscheck 2026-03-28 09:25:27 +01:00
.pre-commit-hooks.yaml remove -file flag and add -debug flag 2025-11-20 11:09:29 +01:00
.yamllint.yml add pre-commit config 2025-11-20 10:17:33 +01:00
Dockerfile add pre-commit config 2025-11-20 10:17:33 +01:00
go.mod fix: update module path to git.karolak.fr/nicolas/yamlscheck 2026-03-28 09:25:27 +01:00
LICENSE add license 2025-11-18 22:53:03 +01:00
README.md remove -file flag and add -debug flag 2025-11-20 11:09:29 +01:00
Taskfile.yml chore: add taskfile 2026-02-12 16:11:39 +01:00
yamlscheck.go remove -file flag and add -debug flag 2025-11-20 11:09:29 +01:00
yamlscheck_test.go handle relative paths 2025-11-18 18:32:46 +01:00

yamlscheck

Validates YAML documents against schemas defined in their head comments.

Requirements

  • check-jsonschema
  • yq

Usage

yamlscheck [flags] <yaml-file>...

Available flags:

  • -dry-run: Do not execute commands
  • -verbose: Show commands being executed
  • -debug: Enable debug output

Each YAML document should have a head comment defining its schema:

# yaml-language-server: $schema=<schema-path-or-url>

With Docker:

docker run \
  --rm \
  --volume "$(pwd)/samples:/tmp/samples" \
  docker.io/nikaro/yamlscheck:latest \
  /tmp/samples/test.yml