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

Add property to swagger comment

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

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

@@ -40,10 +40,11 @@ module.exports = (crowi) => {
  *                 currentDispositionSettings:
  *                   type: object
  *                   properties:
- *                     type: array
- *                     description: The list of MIME types set to inline.
- *                     items:
- *                       type: string
+ *                     inlineMimeTypes:
+ *                       type: array
+ *                       description: The list of MIME types set to inline.
+ *                       items:
+ *                         type: string
  *
  */
   router.put(
@@ -100,10 +101,11 @@ module.exports = (crowi) => {
  *                 currentDispositionSettings:
  *                   type: object
  *                   properties:
- *                     type: array
- *                     description: The list of MIME types set to inline.
- *                     items:
- *                       type: string
+ *                     inlineMimeTypes:
+ *                       type: array
+ *                       description: The list of MIME types set to inline.
+ *                       items:
+ *                         type: string
  *
  */
   router.get('/', loginRequiredStrictly, adminRequired, async(req, res) => {