Content After YAML ... Document End – Start a New Document
Local only
The ... marker explicitly ends a YAML document. Additional content needs a new document start instead of continuing as though the previous document were still open.
29 chars · 3 lines
Waiting for input
Loading YAML parser…
YAML document end troubleshooting
How to fix content after a YAML document end marker
The sample closes the service document with ... and then immediately starts another mapping. Because the first document ended explicitly, the parser needs a new document boundary before more YAML content can follow. This tool is free to use. No account or payment is required.
Last updated
What you can do here
YAML 1.2 parser validation
Duplicate mapping key detection
Preloaded broken YAML example
Readable parser feedback
.yaml and .yml file import
Browser-local processing
Steps
Locate the ... marker before the parser error.
Decide whether the following content should continue the same document or start another one.
Remove the end marker or insert a new --- start as appropriate, then validate the stream again.
Three dots are an explicit YAML document end
Unlike ordinary line breaks, ... tells the parser that the current document is finished. Later content therefore needs to participate in a new document rather than silently extending the previous one.
Check whether your application accepts YAML streams at all
Even when multiple YAML documents are syntactically separated correctly, many configuration consumers expect exactly one document. Syntax validation and application-level document-count requirements are separate checks.
YAML content after explicit document end
Start a new document before the other mapping after the ... marker.
Invalid YAML
service: api
...
other: value
Corrected YAML
service: api
...
---
other: value
Common questions
Frequently asked questions
What does ... mean in YAML?
It is the explicit document end marker and tells the parser that the current YAML document is finished.
Can YAML contain content after ...?
Yes in a stream, but the next content needs to start a new document rather than continue the document that was explicitly ended.
Do I need ... at the end of every YAML file?
No. YAML documents commonly end at end-of-file without an explicit ... marker.