Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
pablf committed Jun 30, 2024
1 parent 57f28a2 commit 7b712ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private case class DeriveSchema()(using val ctx: Quotes) {

val numParentFields: Int = TypeRepr.of[T].typeSymbol.declaredFields.length
val childrenFields = TypeRepr.of[T].typeSymbol.children.map(_.declaredFields.length)
val isSimpleEnum: Boolean = childrenFields.forall( _ == 0 ) || childrenFields.forall( _ <= numParentFields )
val isSimpleEnum: Boolean = childrenFields.forall( _ == 0 )
val hasSimpleEnumAnn: Boolean = TypeRepr.of[T].typeSymbol.hasAnnotation(TypeRepr.of[_root_.zio.schema.annotation.simpleEnum].typeSymbol)

val docAnnotationExpr = TypeRepr.of[T].typeSymbol.docstring.map { docstring =>
Expand Down

0 comments on commit 7b712ca

Please sign in to comment.