eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent
Apache License 2.0
36 stars 19 forks source link

Include content hash into File hash value #133

Closed eed3si9n closed 1 year ago

eed3si9n commented 1 year ago

Problem

I'd like to reuse JsonFormat structure to calculate hash of an arbitrary value. This idea was already implemented in #26, but I'd like File's hash value to include the content hash.

Solution

This changes the default JsonFormat of the File to include both the file name and the content hash.