From 558b89065c574e3edf865461fdc2a007e3703e6f Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 14 Oct 2024 17:08:55 +0200 Subject: [PATCH] allow overriding `JsonWriter.state` --- json_serialization/writer.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_serialization/writer.nim b/json_serialization/writer.nim index 522a5bf..e477bb7 100644 --- a/json_serialization/writer.nim +++ b/json_serialization/writer.nim @@ -17,7 +17,7 @@ export outputs, format, types, JsonString, DefaultFlavor type - JsonWriterState = enum + JsonWriterState* = enum RecordExpected RecordStarted AfterField @@ -27,7 +27,7 @@ type hasTypeAnnotations: bool hasPrettyOutput*: bool # read-only nestingLevel*: int # read-only - state: JsonWriterState + state*: JsonWriterState Json.setWriter JsonWriter, PreferredOutput = string