Skip to content

Commit

Permalink
change trait visibility to public
Browse files Browse the repository at this point in the history
  • Loading branch information
sehnryr committed Oct 21, 2024
1 parent 16cd9d5 commit da74812
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ trait TapirCodecIron extends DescriptionWitness with LowPriorityValidatorForPred

}

private[iron] trait ValidatorForPredicate[Value, Predicate] {
trait ValidatorForPredicate[Value, Predicate] {
def validator: Validator[Value]
def makeErrors(value: Value, errorMessage: String): List[ValidationError[_]]
lazy val containsMinSizePositive: Boolean = validator.asPrimitiveValidators.exists {
Expand All @@ -218,12 +218,12 @@ private[iron] trait ValidatorForPredicate[Value, Predicate] {
}
}

private[iron] trait PrimitiveValidatorForPredicate[Value, Predicate] extends ValidatorForPredicate[Value, Predicate] {
trait PrimitiveValidatorForPredicate[Value, Predicate] extends ValidatorForPredicate[Value, Predicate] {
def validator: Validator.Primitive[Value]
def makeErrors(value: Value, errorMessage: String): List[ValidationError[_]]
}

private[iron] object ValidatorForPredicate {
object ValidatorForPredicate {
def fromPrimitiveValidator[Value, Predicate](
primitiveValidator: Validator.Primitive[Value]
): PrimitiveValidatorForPredicate[Value, Predicate] =
Expand All @@ -235,7 +235,7 @@ private[iron] object ValidatorForPredicate {
}

// #3938: the two-level low-priority validators are needed because of implicit resolution changes in Scala 3.6
private[iron] trait LowPriorityValidatorForPredicate extends LowPriorityValidatorForPredicate2 {
trait LowPriorityValidatorForPredicate extends LowPriorityValidatorForPredicate2 {

inline given validatorForDescribedAnd[N, P](using
id: IsDescription[P],
Expand Down

0 comments on commit da74812

Please sign in to comment.