Skip to content

Use Refined for core domain? #87

Description

@pauljamescleary

I would like to enforce invariants in the core domain.

A few issues that always troubled me:

  1. Do we have a separate "layer" for JSON vs. our core domain model?
  2. How do we enforce invariants in our core domain model while remaining compatible with json and database serialization?

It maybe possible to do this with Refined + Circe Refined.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions