Skip to content

request /v3/api-docs Returns the encoded base64 string with spring-framework 7.0.2 #3173

Description

@sgerke-1L

Describe the bug

The endpoint /v3/api-docs returns base64 encoded JSON instead of the plain JSON. This comes after upgrading to spring-frame 7.0.2 (from spring-framework 7.0.1)

To Reproduce
Use org.springdoc:springdoc-openapi-starter-webmvc-ui with spring framework 7.0.2 and observe the API response to /v3/api-docs

Expected behavior

JSON should be returned directly

Additional context
A work-arround is available:

@Configuration
class WebConfig : WebMvcConfigurer {
    override fun configureMessageConverters(builder: HttpMessageConverters.ServerBuilder) {
        // TODO: Remove this once 
        builder.addCustomConverter(ByteArrayHttpMessageConverter())
    }
}

However, this affects all controllers and might not work in all projects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions