From 8a4cba5db7f601180d4139db398620d539a1c6e9 Mon Sep 17 00:00:00 2001 From: Syed Mujeer Hashmi Date: Tue, 1 Jan 2019 15:12:36 +0530 Subject: Swagger.json: Fix typo and add type for attributes. This fixes typo in attributes field of various model classes and add the type for attributes as "object". This is based on inputs from "https://swagger.io/docs/specification/data-models/dictionaries/" Signed-off-by: Syed Mujeer Hashmi --- swagger.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/swagger.json b/swagger.json index 54ff10d1b..040e9d40e 100644 --- a/swagger.json +++ b/swagger.json @@ -1494,7 +1494,10 @@ "network": { "type": "string" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "User": { @@ -1561,7 +1564,10 @@ "token": { "type": "string" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Server": { @@ -1614,7 +1620,10 @@ "coordinateFormat": { "type": "string" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Command": { @@ -1631,7 +1640,10 @@ "type": { "type": "string" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Device": { @@ -1680,7 +1692,10 @@ "type": "integer" } }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Group": { @@ -1694,7 +1709,10 @@ "groupId": { "type": "integer" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Permission": { @@ -1758,7 +1776,10 @@ "calendarId": { "type": "integer" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Notification": { @@ -1784,7 +1805,10 @@ "calendarId": { "type": "integer" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "NotificationType": { @@ -1819,7 +1843,10 @@ "maintenanceId": { "type": "integer" }, - "attributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "ReportSummary": { @@ -2003,7 +2030,10 @@ "type": "string", "description": "base64 encoded in iCalendar format" }, - "atributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Attribute": { @@ -2037,7 +2067,10 @@ "uniqueId": { "type": "string" }, - "atributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } }, "Maintenance": { @@ -2057,7 +2090,10 @@ "period": { "type": "number" }, - "atributes": {} + "attributes": { + "type": "object", + "additionalProperties": true + } } } }, -- cgit v1.2.3