Some example schemas on swagger not displaying

121 Views Asked by At

New over here..

Has anyone encountered a problem that occurs in swagger where it shows some specific number of urls with their properties and example schemas. While for the rest it just gives the default value "string".

E.g If I have a total of 70 urls for the first 30 urls it gives the accurate example schemas while for others it just gives "string" as the example schema My swagger UI The "string" Example value then shows up for all urls after the api/user/verify

I have tested both drf_yasg and drf-spectacular but got the same result

1

There are 1 best solutions below

0
Сергей Дробот On BEST ANSWER

I has the same problem. Seems it has a problem in the newest version of Swagger I fix it with adding "SWAGGER_UI_DIST": "https://cdn.jsdelivr.net/npm/[email protected]" to SPECTACULAR_SETTINGS