Validate against the schemas you already use.
Use SchemaStore, Kubernetes schemas and custom resource definitions. Associate local or remote schemas with file globs or an inline modeline.
Configure schemasYAML tooling in Rust
A drop-in replacement for yaml-language-server. Keep your settings and schemas. Run it in your editor and in CI without Node.js.
brew install marwanvx/tap/oxyamloxyaml check .Full capture Benchmarks
Measured on GitHub Actions with the same YAML files and schema. See methodology and results
Capabilities
Use SchemaStore, Kubernetes schemas and custom resource definitions. Associate local or remote schemas with file globs or an inline modeline.
Configure schemasSuggest keys and values from the active schema and see descriptions at the cursor.
Format whole documents and get indentation as you type with your yaml.format.* settings.
Apply quick fixes, jump through document symbols, and rename an anchor and its aliases together.
oxyaml checkCheck files and directories and report diagnostics as text, JSON, or SARIF.
Limits on alias expansion and schema validation bound work on hostile YAML and schemas.
yaml.* settings and modelines.marwanvx.oxyaml.Continuous integration
name: Check YAML
on: [push, pull_request]
permissions:
contents: read
jobs:
yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: marwanvx/oxyaml@v1 # moves to the latest 1.x release
with:
format: textrepos:
- repo: https://github.com/marwanvx/oxyaml-pre-commit
rev: v1.0.1
hooks:
- id: oxyaml-checkOpen source