Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->


### Breaking

- Changed ToJSON for DiffusionMode to agree with the topology file syntax. ReadJSON was already correct.


<!--
### Non-Breaking
- A bullet item for the Non-Breaking category.
-->
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ instance FromJSON DiffusionMode where
_ -> fail "Parsing NodeDiffusionMode failed: can be either 'InitiatorOnly' or 'InitiatorAndResponder'"

instance ToJSON DiffusionMode where
toJSON = String . pack . show
toJSON InitiatorOnlyDiffusionMode = "InitiatorOnly"
toJSON InitiatorAndResponderDiffusionMode = "InitiatorAndResponder"

-- | Does not use the 'FromJSON' instance of 'RootConfig', so that
-- 'accessPoints', 'advertise', 'valency' and 'warmValency' fields are attached
Expand Down