Skip to content

JsonMappingException on UI render #630

Closed
@jasonab

Description

@jasonab

Using version 1.3.6

Describe the bug
When trying to render /swagger-ui.html, receive the following error:
There was an unexpected error (type=Internal Server Error, status=500).
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["/keywordGroups/{groupName}"]->io.swagger.v3.oas.models.PathItem["get"]->io.swagger.v3.oas.models.Operation["responses"]->io.swagger.v3.oas.models.responses.ApiResponses["null"])

Expected behavior
Page would render Swagger documentation

I've removed all Swagger annotations from the code in question, leaving only Spring REST-oriented annotations, but cannot seem to get past this error. The method in question returns a ResponseEntity object, if that might matter.

I've also tried adding a full set of @operation + @ApiResponse objects, but it does not get rid of this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions