serokell / coffer

Multi-backend password store with multiple frontends
4 stars 2 forks source link

[#82] Pretty `ToJSON` instances #110

Closed DK318 closed 2 years ago

DK318 commented 2 years ago

Description

Problem

At this moment ToJSON instances leak a lot of internal info. Some of them look very ugly (e.g. EntryPath).

Solution

Used deriveToJSON (aesonPrefix camelCase) to derive some instances. QualifiedPath ToJSON instance is handcrafted. Also removed unnecessary FromJSON instances.

Related issue(s)

Fixed #

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)