springdoc / springdoc-openapi

Library for OpenAPI 3 with spring-boot

Home Page:https://springdoc.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The /v3/api-docs endpoint returns a JWT, causing Swagger to display the message “Unable to render this definition.”

mayipepsi opened this issue · comments

Describe the bug

  • The /v3/api-docs endpoint returns a JWT, causing Swagger to display the message “Unable to render this definition.”

To Reproduce
Steps to reproduce the behavior:

  • springboot v3.3.0
  • springdoc-openapi-starter-webmvc-ui v2.5.0
  • spring-boot-starter-oauth2-resource-server v3.3.0

Expected behavior

  • The expected result is that /v3/api-docs should respond with the normal JSON data.

Screenshots
image

image

@mayipepsi,

Not reproducible.
Feel free to provide a Minimal, Reproducible Example - with HelloController that reproduces the problem.

This ticket will be closed, but can be reopened if your provide the reproducible sample.