@@ -121,7 +121,7 @@ private case class DeriveSchema()(using val ctx: Quotes) {
121
121
val selfRefSymbol = Symbol .newVal(Symbol .spliceOwner, s " derivedSchema ${stack.size}" , TypeRepr .of[Schema [T ]], Flags .Lazy , Symbol .noSymbol)
122
122
val selfRef = Ref (selfRefSymbol)
123
123
124
- val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].show )})}
124
+ val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].classSymbol.get.fullName.replaceAll( " \\ $ " , " " ) )})}
125
125
val isEnumCase = Type .of[T ] match {
126
126
case ' [reflect.Enum ] => true
127
127
case _ => false
@@ -201,7 +201,7 @@ private case class DeriveSchema()(using val ctx: Quotes) {
201
201
List (' {zio.schema.annotation.genericTypeInfo(ListMap .from($ {typeMembersExpr}.zip($ {typeArgsExpr}.map(name => TypeId .parse(name).asInstanceOf [TypeId .Nominal ]))))})
202
202
} else List .empty
203
203
val annotations = ' { zio.Chunk .fromIterable($ {Expr .ofSeq(annotationExprs)}) ++ zio.Chunk .fromIterable($ {Expr .ofSeq(docAnnotationExpr)}) ++ zio.Chunk .fromIterable($ {Expr .ofSeq(genericAnnotations)}) }
204
- val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].show )})}
204
+ val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].classSymbol.get.fullName.replaceAll( " \\ $ " , " " ) )})}
205
205
206
206
val applied = if (labels.length <= 22 ) {
207
207
@@ -390,7 +390,7 @@ private case class DeriveSchema()(using val ctx: Quotes) {
390
390
} else List .empty
391
391
val annotations = ' { zio.Chunk .fromIterable($ {Expr .ofSeq(annotationExprs)}) ++ zio.Chunk .fromIterable($ {Expr .ofSeq(docAnnotationExpr.toList)}) ++ zio.Chunk .fromIterable($ {Expr .ofSeq(genericAnnotations)}) }
392
392
393
- val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].show )})}
393
+ val typeInfo = ' {TypeId .parse($ {Expr (TypeRepr .of[T ].classSymbol.get.fullName.replaceAll( " \\ $ " , " " ) )})}
394
394
395
395
val applied = if (cases.length <= 22 ) {
396
396
val args = List (typeInfo) ++ cases :+ annotations
0 commit comments