Skip to content

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

@arun0009

Description

@arun0009

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"
}
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions