serokell / coffer

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

[#118] Fix unsafe Json http api data instances #125

Closed Kariel-Myrr closed 2 years ago

Kariel-Myrr commented 2 years ago

Description

Problem:

FieldName, EntryTag, PathSegment used unsafe(default text) constructors for FromJSON, FromJSONKey and FromHttpApiData

Solution:

Write new safe instances that use smart newFieldName constructor. Cover new functionality with bad-case tests Also corrected previous Error msg.

Related issue(s)

Fixed #118

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)