sphere-scala-libs icon indicating copy to clipboard operation
sphere-scala-libs copied to clipboard

Default `typeHint` field value

Open mladens opened this issue 1 year ago • 0 comments

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.

mladens avatar Jul 31 '23 08:07 mladens