-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
The following is a fragment from a response definition in my swagger doc:
"definitions": {
"Dataset": {
"title": “Dataset model”,
"type": "object",
"properties": {
"items_per_page": {
"type": "integer",
"description": "Number of items returned in a page of response"
},
"start_index": {
"type": "integer",
"description": "Index of the starting item"
},
"total_items": {
"type": "integer",
"description": "The total number of items in dataset"
},
"items": {
"description": “Dataset items",
"minItems": 0,
"uniqueItems": true,
"type": "array",
"items": {
"$ref": "#/definitions/Metadata"
}
}
}
},
"Metadata": {
"title": “Metadata model",
"type": "object",
.
.
.
DapperDox renders the “Dataset.items” resource incorrectly as an object rather than an array:
{
"items": {
"id": "string",
"kind": "string",
"links": [
{
"url": "string"
}
],
"title": "string"
},
"items_per_page": "integer",
"start_index": "integer",
"total_items": "integer"
}
Swagger UI correctly renders it as:
{
"items_per_page": 0,
"start_index": 0,
"total_items": 0,
"items": [
{
"id": "string",
"kind": "string",
"title": "string",
"links": [
{
"url": "string"
}
]
}
]
}
The items field is an array, not an object.
Reactions are currently unavailable