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

fix: correct Swagger schema definition for response object structure

Shun Miyazawa 7 месяцев назад
Родитель
Сommit
6cc4824576
1 измененных файлов с 9 добавлено и 10 удалено
  1. 9 10
      apps/app/src/server/routes/apiv3/page/index.ts

+ 9 - 10
apps/app/src/server/routes/apiv3/page/index.ts

@@ -303,17 +303,16 @@ module.exports = (crowi) => {
    *            content:
    *              application/json:
    *                schema:
+   *                  type: object
    *                  properties:
-   *                    type: object
-   *                    properties:
-   *                      page:
-   *                        $ref: '#/components/schemas/Page'
-   *                      tags:
-   *                        type: array
-   *                        items:
-   *                          $ref: '#/components/schemas/Tags'
-   *                      revision:
-   *                        $ref: '#/components/schemas/Revision'
+   *                    page:
+   *                      $ref: '#/components/schemas/Page'
+   *                    tags:
+   *                      type: array
+   *                      items:
+   *                        $ref: '#/components/schemas/Tags'
+   *                    revision:
+   *                       $ref: '#/components/schemas/Revision'
    *          409:
    *            description: page path is already existed
    */