Skip to content

Coercion bug #1246

@Ivan-Shaml

Description

@Ivan-Shaml

After update from Jackson 2 to Jackson 3, and respectively updating from com.networknt:json-schema-validator:2.0.1 to 3.0.2, the following issue occurred and one unit test started failing.

Exception:

tools.jackson.databind.exc.JsonNodeException: 'ObjectNode' method `asString()` cannot coerce value {...(1 properties}] to `java.lang.String`: value type not coercible

Full stack trace: stack_trace.txt
Repository with example test to reproduce the issue: repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions