Forum Discussion

T_1's avatar
T_1
Occasional Visitor
3 years ago

Swagger UI displaying arrays as text/plain even though the Content-type is application/json

Swagger UI displaying arrays as text/plain even though the Content-type is application/json

What can cause this problem?

 

This only happens if the response is array.

  • T_1  Do you have a screenshot of the problem, and the an example of the YAML?