Просмотр исходного кода

Update swagger comment with array reponse

arvid-e 6 месяцев назад
Родитель
Сommit
7c3110f487
1 измененных файлов с 10 добавлено и 6 удалено
  1. 10 6
      apps/app/src/server/routes/apiv3/content-disposition-settings.ts

+ 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) => {