Closed pawelprazak closed 4 months ago
fixed by these changes in codecs.scala
// here: change to by-name parameter
def encoderSum[A](mirror: Mirror.SumOf[A], nameEncoderPairs: => List[(String, Encoder[?])]): Encoder[A] = ...
// here: change to by-name parameter
def encoderProduct[A](nameEncoderPairs: => List[(String, Encoder[?])]): Encoder[A] = ...
This test replicated a problem detected in
JsonSchemaPropsArgs
(k8s)This results in a stack overflow:
Two interesting variants:
adding union causes the test to pass
using
derives
instead ofderived
results in a compile time hang.