YAML 1.1 multi-document directives are not processed correctly

Open
#341 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c
Domain
tooling

Research direction

No source file or test is named. Start by locating the multi-document directive parsing entry point and compare its behavior with the YAML 1.1 specification and the linked implementations; done means directives are inherited only by documents that declare none, with regression coverage for both cases.

Written by the indexing model from the issue text.

Description

The YAML 1.1 specification requires previously declared directives to be used for documents with no declared directives:

If the document specifies no directives, it is parsed using the same settings as the previous document. If the document does specify any directives, all directives of previous documents, if any, are ignored.

Please see Issue #299 of PyYAML.
YamlDotNet had the same issue and fixed it in PR #142.

Dominant language
C
Stars
1.2k
Forks
370
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from yaml/libyaml

All issues in yaml/libyaml

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.