-
Notifications
You must be signed in to change notification settings - Fork 105
Update Jackson to 2.18.4 #8449
New issue
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
base: staging
Are you sure you want to change the base?
Update Jackson to 2.18.4 #8449
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,6 @@ object ContentTypes extends Enumeration { | |
| } | ||
|
|
||
| object ContentTypesSchemas { | ||
| val schemaForJson: OpenAPIJsonSchema = OpenAPIJsonSchema("{}") | ||
| // note: "" deserializes to com.fasterxml.jackson.databind.node.MissingNode, | ||
| // which causes NPE when using Jackson 2.18.3+, because from this version on it decodes to null | ||
| val schemaForPlain: OpenAPIJsonSchema = OpenAPIJsonSchema("") | ||
| val schemaForJson: OpenAPIJsonSchema = OpenAPIJsonSchema("{}") | ||
| val schemaForPlain: OpenAPIJsonSchema = OpenAPIJsonSchema("true") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure about this? :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it's that or some heavier refactoring. I mention custom test("boxes are equal") {
class BoxParent {
override def equals(obj: Any): Boolean = true
override def hashCode(): Int = 0
}
case class Box(v: String) extends BoxParent
// this equality is true in Scala, but not in real world
Box("socks") shouldBe Box("gold")
} |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package pl.touk.nussknacker.engine.schemedkafka.schemaregistry | ||
|
|
||
| import org.scalatest.funsuite.AnyFunSuite | ||
| import org.scalatest.matchers.should.Matchers | ||
|
|
||
| class ContentTypesSchemasTest extends AnyFunSuite with Matchers { | ||
|
|
||
| test("schemaForJson is distinct from schemaForPlain") { | ||
| ContentTypesSchemas.schemaForJson shouldNot be(ContentTypesSchemas.schemaForPlain) | ||
| } | ||
|
|
||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, do we even need these two schemas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, yes: