We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a case class like:
final case class WithOptionFields(a: Option[String], b: Option[Int]) object WithOptionFields { implicit lazy val schema: Schema[WithOptionFields] = DeriveSchema.gen[WithOptionFields] }
the following test should pass:
test("case class with option fields present from pretty printed json") { assertDecodes( WithOptionFields.schema, WithOptionFields(Some("s"), Some(1)), charSequenceToByteChunk( """ |{ | "a": "s", | "b": 1 |} |""".stripMargin ) ) }
But that test fails
The text was updated successfully, but these errors were encountered:
Interestingly - if you change the order of the fields in the json string the test passes.
Sorry, something went wrong.
@987Nabil It looks like the latest release did not get correctly published - is CI broken?
No branches or pull requests
Given a case class like:
the following test should pass:
But that test fails
The text was updated successfully, but these errors were encountered: