ContributionsMost RecentMost LikesSolutionsRe: Swagger schema with oneOf with List of object is no generating sample response in UI Hi frankkilcommins Thanks for your reply. The swagger definition is fine, but the problem is Response Sample(using ReDoc) is not generated for definition 1) The problem am facing for path '/pets' is, the 'Response Sample' is generated only for first option 'Cat1' and not generated for 'Dog1' 2) For path '/animal', There is no Response sample generated for either 'Cat' or 'Dog' Swagger schema with oneOf with List of object is no generating sample response in UI Hi, The below swagger definition is not creating sample responses in the Swagger UI. I believe its due to usage of oneOf with List of objects. Please see the example below "content": { "application/json": { "schema": { "oneOf": [ {"$ref": "#dogs"}, {"$ref": "#cats"} ] } } } "dogs": { "type": "array", "items": { "$ref": "#/animal" } }, "cats": { "type": "array", "items": { "$ref": "#/animal" } } "animal": { "type": "object", "properties": { "breed": { "type": "string" } } }