Răsfoiți Sursa

rewrite swagger

WESEEK Kaito 6 ani în urmă
părinte
comite
e73bb97cf0
1 a modificat fișierele cu 15 adăugiri și 27 ștergeri
  1. 15 27
      src/server/routes/apiv3/security-setting.js

+ 15 - 27
src/server/routes/apiv3/security-setting.js

@@ -52,33 +52,21 @@ const validator = {
  *        type: object
  *        type: object
  *          GeneralSetting:
  *          GeneralSetting:
  *            type:object
  *            type:object
- *              GuestModeParams:
- *                type: object
- *                properties:
- *                  restrictGuestMode:
- *                    type: string
- *                    description: type of restrictGuestMode
- *              PageDeletionParams:
- *                type: object
- *                properties:
- *                  pageCompleteDeletionAuthority:
- *                    type: string
- *                    description: type of pageDeletionAuthority
- *              WikiModeParams:
- *                type: object
- *                properties:
- *                  wikiMode:
- *                    type: string
- *                    description: type of wikiMode
- *              Function:
- *                type: object
- *                properties:
- *                  hideRestrictedByOwner:
- *                    type: boolean
- *                    description: enable hide by owner
- *                  hideRestrictedByGroup:
- *                    type: boolean
- *                    description: enable hide by group
+ *              restrictGuestMode:
+ *                type: string
+ *                description: type of restrictGuestMode
+ *              pageCompleteDeletionAuthority:
+ *                type: string
+ *                description: type of pageDeletionAuthority
+ *              wikiMode:
+ *                type: string
+ *                description: type of wikiMode
+ *              hideRestrictedByOwner:
+ *                type: boolean
+ *                description: enable hide by owner
+ *              hideRestrictedByGroup:
+ *                type: boolean
+ *                description: enable hide by group
  *          GitHubOAuthSetting:
  *          GitHubOAuthSetting:
  *            type:object
  *            type:object
  *              githubClientId:
  *              githubClientId: