Creates a PositiveNumber from a literal integer value, validated at compile time. Use this when the value is known at compile time for zero runtime overhead.
Creates a PositiveNumber from a literal integer value, validated at compile time. Use this when the value is known at compile time for zero runtime overhead.
import zio.blocks.schema.json.PositiveNumber
val mult: PositiveNumber = PositiveNumber.literal(5) // compiles
// PositiveNumber.literal(0) // does not compile