Skip to content

.without(YAMLGenerator.Feature.WRITE_DOC_START_MARKER) seems to be ignored #215

@jdimeo

Description

@jdimeo

I feel like I may be using the APIs incorrectly, but I can't figure out what I'm doing wrong. The following code:

new YAMLMapper()
	.writer()
	.without(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)
	.writeValueAsString(o)

still puts the --- at the beginning of the string.

I'm using version 2.11.2

P.S. YAML support is a game. changer. Huge fan and huge thanks!

Metadata

Metadata

Assignees

Labels

3.0has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issueyamlIssue related to YAML format backend

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions