Open
Description
Describe a type or a family of types
- name: PureConfig
- url: https://pureconfig.github.io/
Is your feature request related to a problem? Please describe.
For Sealed Families, PureConfig adds an additional synthetic field called type
.
https://pureconfig.github.io/docs/overriding-behavior-for-sealed-families.html
This would then allow creating a json schema for valid json that pureconfig could turn back into an ADT.
Describe the solution you'd like
A config option to add a const field called type
similar to how PureConfig does it.
Describe alternatives you've considered
Maybe this configuration is already possible, and I just need help figuring out how to do it.