# YAML Syntax Validator

**Use case:** 

Validate YAML documents, catch syntax errors, and export structured validation results for config files and CI checks.

## Input

```json
{
  "documents": [
    "name: Web App\nenvironment: production\nreplicas: 3\nfeatures:\n  - auth\n  - billing"
  ],
  "urls": [],
  "operation": "validate",
  "inputFormat": "yaml",
  "outputFormat": "json",
  "jsonIndent": 2,
  "stopOnError": false,
  "includeOriginal": false
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "inputFormat": {
    "label": "Format",
    "format": "text"
  },
  "isValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "errorMessage": {
    "label": "Error",
    "format": "text"
  },
  "errorLine": {
    "label": "Line",
    "format": "number"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "convertedContent": {
    "label": "Converted Content",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YAML Validator & Converter](https://apify.com/automation-lab/yaml-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/yaml-validator) to learn more, explore other use cases, and run it yourself.