1
0
Fork 0
yaml document schema checker (vibe-coded)
  • Go 96%
  • Dockerfile 4%
Find a file
2026-02-12 16:11:39 +01:00
samples add pre-commit config 2025-11-20 10:17:33 +01:00
.build.yaml push latest tag 2025-11-19 22:19:12 +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 ci: update hooks 2026-02-12 16:10:14 +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 rewrite in go 2025-11-18 17:39:22 +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