diff --git a/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala b/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala index c1d6651e..82d1d4cd 100644 --- a/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala +++ b/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala @@ -27,6 +27,8 @@ enum Visibility: lazy val name: String = productPrefix.toLowerCase case Public, Private + override def toString(): String = name + object Visibility: given Order[Visibility] = Order.by(_.ordinal) given Encoder[Visibility] = Encoder.forString.contramap(_.name)