Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array response bodies simply show 'Array[object]' in model, examples not shown #1253

Open
guillerelax opened this issue Jul 17, 2018 · 0 comments

Comments

@guillerelax
Copy link

guillerelax commented Jul 17, 2018

VERSION:

Swashbuckle.core 5.6.0

STEPS TO REPRODUCE:

Define a type Enumerable of objects and HttpStatusCode.BadRequest for the SwaggerResponse attribut

EXPECTED RESULT:

400 - response model is shown

ACTUAL RESULT:

400 - Array[object]

ADDITIONAL DETAILS

Chrome Version 67.0.3396.99 (Build officiel) (64 bits)
Windows 10,
This problem is already solved in swagger-api/swagger-ui#4079
but it seems that, the reference swagger-ui is not the last version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant