Skip to content

Commit

Permalink
Updating api schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanjie Cheng committed Oct 9, 2024
1 parent 0442987 commit e18e07c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 0 additions & 4 deletions public/openapi/components/schemas/PostObject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ PostObject:
description: A user identifier
isAnonymous:
type: string
privatePost:
type: string
timestamp:
type: number
deleted:
Expand Down Expand Up @@ -99,8 +97,6 @@ PostObject:
nullable: true
isAnonymous:
type: string
privatePost:
type: string
titleRaw:
type: string
oldTitle:
Expand Down
6 changes: 1 addition & 5 deletions public/openapi/components/schemas/TopicObject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ TopicObject:
properties:
isAnonymous:
type: string
privatePost:
type: string
pid:
type: number
uid:
Expand Down Expand Up @@ -182,7 +180,7 @@ TopicObject:
description: A topic identifier
isAnonymous:
type: string
privatePost:
isPrivate:
type: string
thumb:
type: string
Expand Down Expand Up @@ -292,7 +290,5 @@ TopicObjectSlim:
description: The number of thumbnails associated with this topic
isAnonymous:
type: string
privatePost:
type: string
required:
- tid
7 changes: 2 additions & 5 deletions public/openapi/read/topic/topic_id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ get:
isAnonymous:
type: string
nullable: true
privatePost:
type: string
nullable: false
replies:
type: object
properties:
Expand Down Expand Up @@ -440,9 +437,9 @@ get:
isAnonymous:
type: string
nullable: true
privatePost:
isPrivate:
type: string
nullable: false
nullable: true
tid:
type: number
description: A topic identifier
Expand Down
3 changes: 3 additions & 0 deletions public/openapi/read/unread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ get:
nullable: true
titleRaw:
type: string
isPrivate:
type: string
nullable: true
category:
type: object
properties:
Expand Down
2 changes: 0 additions & 2 deletions public/openapi/write/posts/pid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ get:
type: number
isAnonymous:
type: string
privatePost:
type: string
flagId:
type: number
deleted:
Expand Down

0 comments on commit e18e07c

Please sign in to comment.