Skip to content

Commit

Permalink
feat: allow discriminator to not be the first field (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
runtologist authored Dec 13, 2023
1 parent 7610e60 commit 82eace0
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 133 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ _ZIO Schema_ is used by a growing number of ZIO libraries, including [ZIO Flow](
In order to use this library, we need to add the following lines in our `build.sbt` file:

```scala
libraryDependencies += "dev.zio" %% "zio-schema" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-avro" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-bson" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-json" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-msg-pack" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-protobuf" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-thrift" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-zio-test" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-avro" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-bson" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-json" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-msg-pack" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-protobuf" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-thrift" % "0.4.16"
libraryDependencies += "dev.zio" %% "zio-schema-zio-test" % "0.4.16"

// Required for the automatic generic derivation of schemas
libraryDependencies += "dev.zio" %% "zio-schema-derivation" % "0.4.15"
libraryDependencies += "dev.zio" %% "zio-schema-derivation" % "0.4.16"
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided"
```

Expand Down
Loading

0 comments on commit 82eace0

Please sign in to comment.