Skip to main content

KA-S001: Invalid YAML Syntax

Error Schema

Why This Matters

The YAML document contains syntax errors that prevent parsing. Fix the YAML syntax before other validation can proceed.

How to Fix

Fix the YAML syntax error indicated by the parser.

Before (incorrect)

apiVersion: v1
kind: ConfigMap
  metadata:  # wrong indentation

After (correct)

apiVersion: v1
kind: ConfigMap
metadata:  # correct indentation

Rule Details

Rule Code
KA-S001
Severity
Error
Category
Schema

Related Rules