Standard Type Reference
ZIO Schema provides a number of built-in primitive types, that we can use to represent our data. Each one has a defaultValue that generates a value of the type. The following table lists every standard type and whether defaultValue succeeds on each platform. A โ means that defaultValue returns a Left on that platform, because the value cannot be generated there:
| Standard Type | JVM | ScalaJS | Scala Native |
|---|---|---|---|
Boolean | โ | โ | โ |
Byte | โ | โ | โ |
Char | โ | โ | โ |
Chunk[Byte] | โ | โ | โ |
Double | โ | โ | โ |
Float | โ | โ | โ |
Int | โ | โ | โ |
Long | โ | โ | โ |
Short | โ | โ | โ |
String | โ | โ | โ |
Unit | โ | โ | โ |
java.math.BigDecimal | โ | โ | โ |
java.math.BigInteger | โ | โ | โ |
java.time.DayOfWeek | โ | โ | โ |
java.time.Duration | โ | โ | โ |
java.time.Instant | โ | โ | โ |
java.time.LocalDate | โ | โ | โ |
java.time.LocalDateTime | โ | โ | โ |
java.time.LocalTime | โ | โ | โ |
java.time.Month | โ | โ | โ |
java.time.MonthDay | โ | โ | โ |
java.time.OffsetDateTime | โ | โ | โ |
java.time.OffsetTime | โ | โ | โ |
java.time.Period | โ | โ | โ |
java.time.Year | โ | โ | โ |
java.time.YearMonth | โ | โ | โ |
java.time.ZoneId | โ | โ | โ |
java.time.ZoneOffset | โ | โ | โ |
java.time.ZonedDateTime | โ | โ | โ |
java.util.Currency | โ | โ | โ |
java.util.UUID | โ | โ | โ |