-
Notifications
You must be signed in to change notification settings - Fork 761
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
Parameter display does not display arrays of models properly #343
Comments
As noted elsewhere this behavior can also be observed in http://petstore.swagger.io/#!/user/createUsersWithArrayInput - parameter "body" is shown as "Array[#/definitions/User]" Once it is fixed, will it only be shown as "Array[User]", or will there be a way to expand it to see the definition of User? Thanks! |
@whitlockjc Yes it works in the latest develop_2.0 now. [
{
"your": "model here",
"...": "..."
}
] |
What about parameters? When you see a parameter that is an array of models, inline or referenced, does it show |
That's correct. I think it showed the string version because it wasn't typed right but it seems you've fixed this. Thanks a lot. |
Whenever you have an array of models and the schemas items are a reference, instead of
Array[ReferencedType]
you getArray[Reference]
in the parameter display. So for example, the following parameter schema:results in a display of
Array[#/definitions/Person]
instead ofArray[Person]
.This was original reported from domaindrivendev/Swashbuckle/issues/200.
The text was updated successfully, but these errors were encountered: