You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when aliasing type taking more than 1 parameter, schema for map looses type parameter info.
eg given: type Tree[A] = A Either Node[A] final case class Node[A](values: List[A])
@kciesielski it doesn't, I think the underlying issue is that the method extractTypeArguments (see screenshot) extracts the type argument of the alias and adds it to concrete symbols name
@lgmyrek right, I was checking under Scala 3 and there the derivation works well, but indeed it returns Map_Int_Either_String for Scala 2, working on it.
Tapir version: 1.10.8
Scala version: 2.13.13
What is the problem?
when aliasing type taking more than 1 parameter, schema for map looses type parameter info.
eg given:
type Tree[A] = A Either Node[A]
final case class Node[A](values: List[A])
endpoint with:
.in(jsonBody[Map[Int, Tree[String]]])
we get docs:
where I would expect:
Map_Int_Either_String_Node_String
ORMap_Int_Tree_String
Maybe you can provide code to reproduce the problem?
Additional information
The text was updated successfully, but these errors were encountered: