aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyed Mujeer Hashmi <mujeerhashmi@gmail.com>2019-01-01 15:12:36 +0530
committerSyed Mujeer Hashmi <mujeerhashmi@gmail.com>2019-01-01 22:35:49 +0530
commit8a4cba5db7f601180d4139db398620d539a1c6e9 (patch)
treefffd2cd208fd3e7d5543941d85bcee42762511e3
parentb8353006ba89aa67eefc6c06f423812d9c06432a (diff)
downloadtrackermap-server-8a4cba5db7f601180d4139db398620d539a1c6e9.tar.gz
trackermap-server-8a4cba5db7f601180d4139db398620d539a1c6e9.tar.bz2
trackermap-server-8a4cba5db7f601180d4139db398620d539a1c6e9.zip
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 <mujeerhashmi@gmail.com>
-rw-r--r--swagger.json60
1 files 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
+ }
}
}
},