swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

Generated html is missing the object examples

Open rbodner opened this issue 3 years ago • 1 comments

When I generate an html file, the examples for the requests appear with empty objects (see ExampleWithEmptyObjects.png), even though the object definitions are correct (See ObjectDefinition.png). The same yaml file that was generating a good html file a week or two ago (see ExampleWithCorrectObjects.png) now generates one with empty objects in examples. Installing a new Swagger Editor didn't fix the problem, the examples for the same exact yaml file still have empty objects.

I attached some screenshots showing the good and bad versions of the html file generated from the same yaml file. Please let me know if you need more info.

Thanks!

ObjectDefinition ExampleWithCorrectObjects GeneratedModel_ExampleWithCorrectObjects ExampleWithEmptyObjects

GeneratedModel_ExampleWithEmptyObjects

rbodner avatar Mar 05 '21 15:03 rbodner

@rbodner Can you provide a sample definition to copy/paste for testing? Also, just confirming this is still an issue, as there have been recent changes to examples (from swagger-ui).

tim-lai avatar Mar 24 '21 17:03 tim-lai