Skip to content

Commit c47e35d

Browse files
Merge pull request #333 from Elite-Kode/swagger-fix
fix: swagger for endpoints should not use arrays
2 parents 337ab69 + 713987e commit c47e35d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

backend/routes/elite_bgs_api/v5/factions.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,9 @@ let aggregateOptions = {
123123
* type: integer
124124
* responses:
125125
* 200:
126-
* description: An array of factions with historical data
126+
* description: An page of factions with historical data
127127
* schema:
128-
* type: array
129-
* items:
130-
* $ref: '#/definitions/EBGSFactionsPageV5'
128+
* $ref: '#/definitions/EBGSFactionsPageV5'
131129
*/
132130
router.get('/', cors(), async (req, res, next) => {
133131
// SHA 256 is a strong hash function that will produce unique hashes on even similar URLs

backend/routes/elite_bgs_api/v5/stations.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ let aggregateOptions = {
103103
* type: integer
104104
* responses:
105105
* 200:
106-
* description: An array of stations with historical data
106+
* description: An page of stations with historical data
107107
* schema:
108-
* type: array
109-
* items:
110-
* $ref: '#/definitions/EBGSStationsPageV5'
108+
* $ref: '#/definitions/EBGSStationsPageV5'
111109
*/
112110
router.get('/', cors(), async (req, res, next) => {
113111
// SHA 256 is a strong hash function that will produce unique hashes on even similar URLs

backend/routes/elite_bgs_api/v5/systems.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,9 @@ let aggregateOptions = {
171171
* type: integer
172172
* responses:
173173
* 200:
174-
* description: An array of systems with historical data
174+
* description: An page of systems with historical data
175175
* schema:
176-
* type: array
177-
* items:
178-
* $ref: '#/definitions/EBGSSystemsPageV5'
176+
* $ref: '#/definitions/EBGSSystemsPageV5'
179177
*/
180178
router.get('/', cors(), async (req, res, next) => {
181179
// SHA 256 is a strong hash function that will produce unique hashes on even similar URLs

0 commit comments

Comments
 (0)