All Downloads are FREE. Search and download functionalities are using the official Maven repository.

refined4s.modules.tapir.derivation.TapirRefinedSchema.scala Maven / Gradle / Ivy

package refined4s.modules.tapir.derivation

import refined4s.RefinedBase
import sttp.tapir.Schema

/** @author Kevin Lee
  * @since 2024-04-03
  */
trait TapirRefinedSchema[A: Schema] {
  self: RefinedBase[A] =>

  given derivedSchema: Schema[Type] = summon[Schema[A]].map[Type](from(_).toOption)(_.value)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy