Validate ruleset
validate_rulesetValidates YAML or JSON OpenLint rulesets without executing code, confirming they are well formed and flagging rules that cannot be passed inline.
Instructions
Checks a YAML or JSON OpenLint ruleset without running any code. valid means the ruleset is well formed. warnings list what lint_document would refuse when the ruleset is passed inline (custom functions, or extending files, URLs or packages); such rulesets can still be configured on the server with --ruleset. JavaScript rulesets are not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The ruleset as YAML or JSON text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| warnings | Yes |