sphere-scala-libs
sphere-scala-libs copied to clipboard
Default `typeHint` field value
In order to add alternatives to existing types with an ADT in a backwards compatible way we declare the current type to be one of the implementations of new hierarchy. New clients will always be sending type hints whereas old will not.
This PR expands JSONTypeHintField
with additional parameter, designating which impl to fallback to if hint is not provided at all.