Skip to content

Node.js based forum software built for the modern web

fix(spec): broken test due to canFlag addition

Julian Lam1b1205a9ced3
diff --git a/public/openapi/components/schemas/UserObject.yaml b/public/openapi/components/schemas/UserObject.yaml
index 2edc402156..d1621e13df 100644
--- a/public/openapi/components/schemas/UserObject.yaml
+++ b/public/openapi/components/schemas/UserObject.yaml
@@ -412,6 +412,8 @@ UserObjectFull:
type: boolean
canBan:
type: boolean
+ canFlag:
+ type: boolean
canChangePassword:
type: boolean
isSelf:
diff --git a/public/openapi/read/user/userslug/watched.yaml b/public/openapi/read/user/userslug/watched.yaml
index 9069465791..11e6cf9266 100644
--- a/public/openapi/read/user/userslug/watched.yaml
+++ b/public/openapi/read/user/userslug/watched.yaml
@@ -16,200 +16,11 @@ get:
application/json:
schema:
allOf:
- - $ref: ../../../components/schemas/UserObject.yaml#/UserObject
+ - $ref: ../../../components/schemas/UserObject.yaml#/UserObjectFull
- type: object
properties:
- aboutmeParsed:
- type: string
- age:
- type: number
- emailClass:
- type: string
- ips:
- type: array
- items:
- type: string
- counts:
- type: object
- properties:
- best:
- type: number
- blocks:
- type: number
- bookmarks:
- type: number
- categoriesWatched:
- type: number
- downvoted:
- type: number
- followers:
- type: number
- following:
- type: number
- groups:
- type: number
- ignored:
- type: number
- posts:
- type: number
- topics:
- type: number
- uploaded:
- type: number
- upvoted:
- type: number
- watched:
- type: number
- isBlocked:
- type: boolean
- blocksCount:
- type: number
- yourid:
- type: number
- theirid:
- type: number
- isTargetAdmin:
- type: boolean
- isAdmin:
- type: boolean
- isGlobalModerator:
- type: boolean
- isModerator:
- type: boolean
- isAdminOrGlobalModerator:
- type: boolean
- isAdminOrGlobalModeratorOrModerator:
- type: boolean
- isSelfOrAdminOrGlobalModerator:
- type: boolean
- canEdit:
- type: boolean
- canBan:
- type: boolean
- canChangePassword:
- type: boolean
- isSelf:
- type: boolean
- isFollowing:
- type: boolean
- hasPrivateChat:
- type: number
- showHidden:
- type: boolean
- groups:
- type: array
- items:
- type: object
- properties:
- name:
- type: string
- slug:
- type: string
- createtime:
- type: number
- userTitle:
- type: string
- description:
- type: string
- memberCount:
- type: number
- deleted:
- oneOf:
- - type: string
- - type: number
- hidden:
- type: number
- system:
- type: number
- private:
- type: number
- ownerUid:
- type: number
- icon:
- type: string
- labelColor:
- type: string
- userTitleEnabled:
- type: number
- disableJoinRequests:
- type: number
- disableLeave:
- type: number
- nameEncoded:
- type: string
- displayName:
- type: string
- textColor:
- type: string
- createtimeISO:
- type: string
- cover:thumb:url:
- type: string
- cover:url:
- type: string
- cover:position:
- type: string
- disableSignatures:
- type: boolean
- reputation:disabled:
- type: boolean
- downvote:disabled:
- type: boolean
- profile_links:
- type: array
- items:
- type: object
- properties:
- id:
- type: string
- route:
- type: string
- name:
- type: string
- visibility:
- type: object
- properties:
- self:
- type: boolean
- other:
- type: boolean
- moderator:
- type: boolean
- globalMod:
- type: boolean
- admin:
- type: boolean
- canViewInfo:
- type: boolean
- public:
- type: boolean
- icon:
- type: string
- sso:
- type: array
- items:
- type: object
- properties:
- associated:
- type: boolean
- url:
- type: string
- deauthUrl:
- type: string
- name:
- type: string
- icon:
- type: string
- websiteLink:
- type: string
- websiteName:
- type: string
moderationNote:
type: string
- username:disableEdit:
- type: boolean
- email:disableEdit:
- type: boolean
topics:
type: array
items: