From 03ecab0075eccd94f78d347d9c68ccd6f6999d1f Mon Sep 17 00:00:00 2001 From: flyx Date: Tue, 23 Mar 2021 13:20:48 +0100 Subject: [PATCH] fix bool serialization output `true` or `false` instead of `y` and `n` to comply with the YAML 1.2 spec. --- yaml/serialization.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/serialization.nim b/yaml/serialization.nim index ddbaead..38f1429 100644 --- a/yaml/serialization.nim +++ b/yaml/serialization.nim @@ -318,7 +318,7 @@ proc constructObject*(s: var YamlStream, c: ConstructionContext, proc representObject*(value: bool, ts: TagStyle, c: SerializationContext, tag: Tag) {.raises: [].} = ## represents a bool value as a YAML scalar - c.put(scalarEvent(if value: "y" else: "n", tag, yAnchorNone)) + c.put(scalarEvent(if value: "true" else: "false", tag, yAnchorNone)) proc constructObject*(s: var YamlStream, c: ConstructionContext, result: var char)