Преглед изворни кода

support(jsdoc): change response reference name in in-app-notification.ts

Atsushi Nakatsugawa пре 1 година
родитељ
комит
bca02fffd4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      apps/app/src/server/routes/apiv3/in-app-notification.ts

+ 2 - 2
apps/app/src/server/routes/apiv3/in-app-notification.ts

@@ -18,7 +18,7 @@ const router = express.Router();
  * @swagger
  * components:
  *   schemas:
- *     DocumentResponse:
+ *     InAppNotificationListResponse:
  *       type: object
  *       properties:
  *         docs:
@@ -129,7 +129,7 @@ module.exports = (crowi) => {
    *          content:
    *            application/json:
    *              schema:
-   *                $ref: '#/components/schemas/DocumentResponse'
+   *                $ref: '#/components/schemas/InAppNotificationListResponse'
    */
   router.get('/list', accessTokenParser, loginRequiredStrictly, async(req: CrowiRequest, res: ApiV3Response) => {
     // user must be set by loginRequiredStrictly