yaml document schema checker (vibe-coded)
- Go 96%
- Dockerfile 4%
| samples | ||
| .build.yaml | ||
| .editorconfig | ||
| .gitignore | ||
| .hadolint.yaml | ||
| .pre-commit-config.yaml | ||
| .pre-commit-hooks.yaml | ||
| .yamllint.yml | ||
| Dockerfile | ||
| go.mod | ||
| LICENSE | ||
| README.md | ||
| Taskfile.yml | ||
| yamlscheck.go | ||
| yamlscheck_test.go | ||
yamlscheck
Validates YAML documents against schemas defined in their head comments.
Requirements
check-jsonschemayq
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