Skip to content

Implement alternative GenJSON for Either

Erin van der Veen requested to merge infield-either into master

What does this MR do?

Implements an alternative GenJSON derivation for Either that does not serialize the Left and Right constructors, which creates JSON slightly more compatible with TypeScript.

Related issues

N/A

Changes to public APIs

Creates an additional module deriving GenJSON for Either, does not modify or change any other parts of the API.

Author's checklist (required)

See CONTRIBUTING.md for the rationale behind these items:

  • The commit history does not contain merges (use git rebase -i master if it does)
  • Intermediate commits compile (use git rebase -i master if not)
  • Newly added code follows the Platform code style
  • Newly added code is documented
  • If bugs have been solved, tests have been added
  • Appropriate types have been used, especially in APIs
  • If efficiency is part of the acceptance criteria of the issue, a benchmark is provided
  • A changelog entry has been added if required. See CONTRIBUTING.md
Edited by Erin van der Veen

Merge request reports