Open mattibo opened 1 year ago
@mattibo what happens if you pass the old spec ‘as-is’ into the new version of swagger-ui? Your two schemas are not the same, in the old one, the ‘examples’ mapping is correctly placed, but in the new one it’s within the schema.
Were these built by pre v0.100 and post v0.100 versions of fastapi
?
The list of
examples
fromschema
of parameters is not shown in Swagger UI:Example: OpenApi:
3.1.0
, SwaggerUI5.1.3
In the rendered SwaggerUI no examples are shown:
Example: OpenApi:
3.0.2
, SwaggerUI5.1.3
With version 3.0.2 of OpenApi the examples are shown correctly in the Swagger UI:
Is this a bug in the current version of the Swagger UI or will the
examples
of the Schema not displayed in the UI?