swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.46k stars 8.95k forks source link

Swagger-ui not showing example for query parameter #7635

Open Xiirf opened 2 years ago

Xiirf commented 2 years ago

Hello,

I'm working on a Rest API using java 7 and Spring. I have a Swagger documentation using library swagger-jersey2-jaxrs to generate my swagger.json. To display it, i'm using Swagger-ui from the dist repository (https://github.com/swagger-api/swagger-ui/tree/master/dist).

My problem is that when i display my Swagger documentation, the query param example isn't and i dont know why. If i try with an "official" json (https://petstore.swagger.io/v2/swagger.json) it is not displayed too.

I have the same behaviour for the query parameter format.

From the https://petstore.swagger.io/ website i have this result (the good one) : image

And from the swagger-ui from the dist repository image

Some one know how i can display my query param example and format ? Is that behaviour a normal thing ?

Thank's for your help

gpgpublickey commented 1 year ago

can anybody answer the 1 year ago question of this guy?