mirror of https://github.com/status-im/NimYAML.git
fix bool serialization
output `true` or `false` instead of `y` and `n` to comply with the YAML 1.2 spec.
This commit is contained in:
parent
fcae534148
commit
03ecab0075
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue