-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Comments
fixed here: swagger-api/swagger-js@7ba959a and pushed to swagger-ui |
This was referenced Sep 24, 2020
This was referenced Apr 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"
}
],
The text was updated successfully, but these errors were encountered: