Skip to content

After upgrading from Spring Boot 3 to 4: Serialized ProblemDetail is missing the 'type' field when it's not specified #36908

@vprudnikov

Description

@vprudnikov

Spring Boot 4.1.0

With Spring Boot 3, a ProblemDetail instance with type=null produced JSON with "type": "about:blank".
After upgrading to Spring Boot 4, there is no type field in the serialized JSON.

For example:

{
  "detail" : "Test detail",
  "instance" : "/TestException",
  "status" : 400,
  "title" : "Non-compliant Test Rule"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    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