Method of installation: visual studio code extension (openapi-designer)
Swagger-UI version: [e.g. 3.21.0]
Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
I use a visual studio extension to render things on the fly (openapi-designer) and have checked that it uses the latest version of swagger-ui
Example Swagger/OpenAPI definition:
startDate:
type: string
format: date
example: 2018-12-25
Describe the bug you're encountering
There was recently a pull request to make automatic example if it is not present. That works fine, but when I have my own example, then the rendered date for some reason includes timestamp as well:
Q&A (please complete the following information)
Content & configuration
I use a visual studio extension to render things on the fly (openapi-designer) and have checked that it uses the latest version of swagger-ui
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
There was recently a pull request to make automatic example if it is not present. That works fine, but when I have my own example, then the rendered date for some reason includes timestamp as well:
To reproduce...
Expected behavior
Expected to see only date in example