We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b85ffc commit 575a21fCopy full SHA for 575a21f
ouroboros-network/orphan-instances/Ouroboros/Network/OrphanInstances.hs
@@ -117,7 +117,9 @@ instance FromJSON DiffusionMode where
117
_ -> fail "Parsing NodeDiffusionMode failed: can be either 'InitiatorOnly' or 'InitiatorAndResponder'"
118
119
instance ToJSON DiffusionMode where
120
- toJSON = String . pack . show
+ toJSON InitiatorOnlyDiffusionMode = "InitiatorOnly"
121
+ toJSON InitiatorAndResponderDiffusionMode = "InitiatorAndResponder"
122
+
123
124
-- | Does not use the 'FromJSON' instance of 'RootConfig', so that
125
-- 'accessPoints', 'advertise', 'valency' and 'warmValency' fields are attached
0 commit comments