cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger - Parameter not rendering

SOLVED
Highlighted
New Contributor

Swagger - Parameter not rendering

I recently upgraded to Springboot 2.2 and after that my swagger 2.0 files were not showing parameters (Could not render this component message).

I made the swagger simple with just one endpoint and one param and i still see that error. When i copy paste it to swagger UI, no errors reported.. What could be the reason

 
 
 
 
 

My pom dependencies, screen shot of error, swagger yaml file and browser console error attached. Appreciate any tips on resolving this..

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Finally found the reason for my problem. I was including a library which had EnableWebMvc annotaiton, and our app is a SpringBoot app.. though i dont know exactly what the root cause is, but removing the annotation fixed my problem.

View solution in original post

3 REPLIES 3
Highlighted
Moderator

What version of Swagger UI do you use? Open the browser developer tools, switch to the Console tab and evaluate versions.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Tags (1)
Highlighted
New Contributor

my version is 3.17..   I did try to upgrade to 3.32 , and still got similar parameter not rendering error.  The swagger files worked fine with older Spring boot 1.5

Highlighted
New Contributor

Finally found the reason for my problem. I was including a library which had EnableWebMvc annotaiton, and our app is a SpringBoot app.. though i dont know exactly what the root cause is, but removing the annotation fixed my problem.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements