32 chars · 3 lines
Waiting for input
32 chars · 3 lines
Waiting for input
YAML mapping troubleshooting
The broken example omits the colon between name and api. That line can no longer act as the intended mapping entry, and the next key exposes the malformed block. Restore the key/value separator and validate the full mapping again. This tool is free to use. No account or payment is required.
Last updated
Like many syntax parsers, a YAML parser can continue until later input makes the current interpretation impossible. Check the preceding mapping entry before changing the token named by the error.
After syntax is valid, confirm that the key and value are arranged the way Kubernetes, Compose, CI, or your own application expects. YAML validation checks syntax, not product-specific configuration schemas.
The name key needs a colon before its scalar value.
service:
name api
port: 8080service:
name: api
port: 8080Common questions
The parser may not know the previous line is impossible until it sees the next token, so inspect nearby source rather than changing only the highlighted character.
Mapping entries use a colon separator between a key and its value. Other YAML structures such as sequence items have different syntax.
No. VetaTool validates YAML syntax; application-specific schema rules are a separate validation step.
Debugging a specific YAML issue? Browse YAML troubleshooting.