summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/gallery-post.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-11-21 11:13:56 +0900
committerGitHub <noreply@github.com>2023-11-21 11:13:56 +0900
commit8bd9077f77eaebaa4dff403e072ba49e4cab1326 (patch)
tree91e217c04667b3d1d7a2abdb7f911c54cd1ae775 /packages/backend/src/models/json-schema/gallery-post.ts
parentupdate api.md (#12379) (diff)
downloadsharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.gz
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.bz2
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.zip
json-schema配下の最新化 (#12312)
* user.ts、page.ts、drive-folder.tsを各EntityServiceの戻り値をもとに最新化 * 再確認 * fix error * note以外の残りのファイルを対応 * fix CHANGELOG.md * fix CHANGELOG.md * fix user.ts * fix user.ts * コメント対応 * fix note.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/models/json-schema/gallery-post.ts')
-rw-r--r--packages/backend/src/models/json-schema/gallery-post.ts24
1 files changed, 16 insertions, 8 deletions
diff --git a/packages/backend/src/models/json-schema/gallery-post.ts b/packages/backend/src/models/json-schema/gallery-post.ts
index cf260c0bf5..df7038950c 100644
--- a/packages/backend/src/models/json-schema/gallery-post.ts
+++ b/packages/backend/src/models/json-schema/gallery-post.ts
@@ -22,14 +22,6 @@ export const packedGalleryPostSchema = {
optional: false, nullable: false,
format: 'date-time',
},
- title: {
- type: 'string',
- optional: false, nullable: false,
- },
- description: {
- type: 'string',
- optional: false, nullable: true,
- },
userId: {
type: 'string',
optional: false, nullable: false,
@@ -40,6 +32,14 @@ export const packedGalleryPostSchema = {
ref: 'UserLite',
optional: false, nullable: false,
},
+ title: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ description: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
fileIds: {
type: 'array',
optional: true, nullable: false,
@@ -70,5 +70,13 @@ export const packedGalleryPostSchema = {
type: 'boolean',
optional: false, nullable: false,
},
+ likedCount: {
+ type: 'number',
+ optional: false, nullable: false,
+ },
+ isLiked: {
+ type: 'boolean',
+ optional: true, nullable: false,
+ },
},
} as const;