Răsfoiți Sursa

Update swagger comment with array reponse

arvid-e 7 luni în urmă
părinte
comite
7c3110f487

+ 10 - 6
apps/app/src/server/routes/apiv3/content-disposition-settings.ts

@@ -39,9 +39,11 @@ module.exports = (crowi) => {
  *               properties:
  *                 currentDispositionSettings:
  *                   type: object
- *                   additionalProperties:
- *                     type: string[]
- *                     description: inline MIME types
+ *                   properties:
+ *                     type: array
+ *                     description: The list of MIME types set to inline.
+ *                       items:
+ *                       type: string
  *
  */
   router.put(
@@ -97,9 +99,11 @@ module.exports = (crowi) => {
  *               properties:
  *                 currentDispositionSettings:
  *                   type: object
- *                   additionalProperties:
- *                     type: string
- *                     description: inline MIME types
+ *                   properties:
+ *                     type: array
+ *                     description: The list of MIME types set to inline.
+ *                       items:
+ *                       type: string
  *
  */
   router.get('/', loginRequiredStrictly, adminRequired, async(req, res) => {