Skip to content

Commit

Permalink
further simplications...
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicoulaud-ledger committed Nov 4, 2023
1 parent dbe2a54 commit d221891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api/src/main/scala/types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sttp.tapir.Codec.PlainCodec
import sttp.tapir.DecodeResult
import sttp.tapir.codec.iron.TapirCodecIron

private type VersionConstraints = DescribedAs[GreaterEqual[0], "Version must be positive"]
type VersionConstraints = GreaterEqual[0]
opaque type Version = Int :| VersionConstraints

object Version extends RefinedTypeOps[Int, VersionConstraints, Version] with TapirCodecIron:
Expand Down

0 comments on commit d221891

Please sign in to comment.