Loading...
Loading...
YAMLException: bad indentation of a mapping entry at line XYAML is extremely sensitive to indentation. This error means a key-value pair (mapping entry) is not indented consistently with the rest of the block. YAML uses spaces (never tabs) for indentation.
Paste your YAML into our validator to instantly see the exact line and column of the error.
YAML does not allow tabs. Use your editor's 'Replace All' to convert tabs to spaces.
# In VS Code: Open Command Palette → "Convert Indentation to Spaces"
# Or use sed on Linux:
sed -i 's/\t/ /g' your-file.yamlStick to 2 spaces per indentation level throughout the entire file.
# ✅ Correct
services:
web:
image: nginx
ports:
- "80:80"
# ❌ Wrong (mixed indentation)
services:
web:
image: nginx # 6 spaces instead of 4