zio-schema
zio-schema copied to clipboard
Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
Now that we can generate a default value for any schema, we should allow the use of default values to "fill out" schema migrations. For example, a migration from `case...
Trying to create a serialisable DSL for my project. On using `DeriveSchema.gen` on the domain is giving error. Scastie [link](https://scastie.scala-lang.org/blaCVeYZT7CdGZgVsPlc4Q) Error ``` [error] ## Exception when compiling 38 sources to...
Currently if we have a nested `Optional` schema such as `Schema.Optional(Schema.Optional(Schema.primtive(StandardType.StringType))` we cannot distinguish between the JSONprotobuf encodings of `Some(None)` and `None` which will both be encoded to `null` in...
Given a protobuf, it should be possible to generate both the Scala data structure, as well as the `Schema` corresponding to this data structure.
This PR adds support for `java.util.Currency`and closes out https://github.com/zio/zio-schema/issues/558. Note: This only adds support for the JVM, as there is no standard support for `java.util.Currency` in ScalaNative or ScalaJS. /claim...
Autogenerated changes after running the `sbt docs/generateReadme` command of the [zio-sbt-website](https://zio.dev/zio-sbt) plugin. I will automatically update the README.md file whenever there is new change for README.md, e.g. - After each...
/claim #655 In order to resolve the issue of incosistent `hashCode` values for `DynamicValue` objects, I have added an implementation of the `hashCode` method for the `DynamicValue` class. I have...
The JSON codec accepts malformed JSON strings like `{}}`, `"foo""` without error. Reproducer: https://scastie.scala-lang.org/guersam/IFS2CO8dRGiNpsQhId3u3A/5
## Description JSON decoding bug occurs when attempting to parse parameters following a sealed trait with mixed types (case objects and a case class). The decoder fails to process any...