Skip to content

JsonMappingException if ResponseStatus == NO_CONTENT (204) #641

Closed
@Ichigo85

Description

@Ichigo85

Hi. I'm trying to make the migration to springdoc-openapi. After updating from 1.3.4 to 1.3.7 I have an error on java controller methods with annotation
@ResponseStatus(HttpStatus.NO_CONTENT).

Creating OpenApi json I receive this error

com.fasterxml.jackson.databind.JsonMappingException: Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) (through reference chain: io.swagger.v3.oas.models.OpenAPI["paths"]->io.swagger.v3.oas.models.Paths["/api/v0_6/operation/doSomething"]->io.swagger.v3.oas.models.PathItem["post"]->io.swagger.v3.oas.models.Operation["responses"]->io.swagger.v3.oas.models.responses.ApiResponses["null"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions