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 in models not displaying in Swagger UI Model Schema #393

Closed
arun0009 opened this issue Feb 13, 2014 · 1 comment
Closed

Array in models not displaying in Swagger UI Model Schema #393

arun0009 opened this issue Feb 13, 2014 · 1 comment

Comments

@arun0009
Copy link

Array's in Model is not showing up properly in model schema.

For my Model :

RedemptionRequest {
items (array[RedemptionItem]): List of Items to Redeem
}
RedemptionItem {
itemId (string): Client Side item identifier,
description (string): Item description,
amount (BigDecimal): Item Cost,
points (integer): Points to redeem,
category (string): Redemption Category - must be one of the category from balance response
}

I see the model schema as:

{
"items": [
"RedemptionItem"
]
}

Note: It works at http://swagger.wordnik.com/#!/pet/addPet_post_5
Tag arrays show up in as expected in above link :
"tags": [
{
"id": "integer",
"name": "string"
}
],

@fehguy
Copy link
Contributor

fehguy commented Feb 13, 2014

fixed here: swagger-api/swagger-js@7ba959a

and pushed to swagger-ui

@fehguy fehguy closed this as completed Feb 13, 2014
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

2 participants