Skip to content

Commit

Permalink
Added deriveUnionApiSchema convenience function.
Browse files Browse the repository at this point in the history
  • Loading branch information
pme123 committed Nov 26, 2024
1 parent b7fe428 commit f80e495
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 01-domain/src/main/scala/camundala/domain/exports.scala
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ inline def deriveApiSchema[T](using
m: Mirror.Of[T]
): Schema[T] =
Schema.derived[T]

inline def deriveUnionApiSchema[T](using
m: Mirror.Of[T]
): Schema[T] =
Schema.derivedUnion[T]

inline def deriveEnumApiSchema[T](using
m: Mirror.Of[T]
): Schema[T] =
Expand Down

0 comments on commit f80e495

Please sign in to comment.