再確認

This commit is contained in:
osamu 2023-11-10 11:09:07 +09:00
parent e979743dbb
commit fac1d27676
4 changed files with 25 additions and 20 deletions

View File

@ -74,7 +74,7 @@ export const packedDriveFileSchema = {
},
url: {
type: 'string',
optional: false, nullable: true,
optional: false, nullable: false,
format: 'url',
},
thumbnailUrl: {
@ -94,7 +94,7 @@ export const packedDriveFileSchema = {
},
folder: {
type: 'object',
optional: true, nullable: true,
optional: false, nullable: true,
ref: 'DriveFolder',
},
userId: {
@ -105,7 +105,7 @@ export const packedDriveFileSchema = {
},
user: {
type: 'object',
optional: true, nullable: true,
optional: false, nullable: true,
ref: 'UserLite',
},
},

View File

@ -37,7 +37,7 @@ export const packedDriveFolderSchema = {
},
parent: {
type: 'object',
optional: true, nullable: true,
optional: true, nullable: false,
ref: 'DriveFolder',
},
},

View File

@ -35,10 +35,18 @@ export const packedPageSchema = {
content: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
},
},
variables: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
},
},
title: {
type: 'string',

View File

@ -124,7 +124,7 @@ export const packedUserLiteSchema = {
nullable: false, optional: false,
},
iconUrl: {
type: 'number',
type: 'string',
nullable: true, optional: false,
},
displayOrder: {
@ -153,18 +153,15 @@ export const packedUserDetailedNotMeOnlySchema = {
movedTo: {
type: 'string',
format: 'uri',
nullable: true,
optional: false,
nullable: true, optional: false,
},
alsoKnownAs: {
type: 'array',
nullable: true,
optional: false,
nullable: true, optional: false,
items: {
type: 'string',
format: 'id',
nullable: false,
optional: false,
nullable: false, optional: false,
},
},
createdAt: {
@ -359,11 +356,11 @@ export const packedUserDetailedNotMeOnlySchema = {
},
memo: {
type: 'string',
nullable: false, optional: true,
nullable: true, optional: false,
},
moderationNote: {
type: 'string',
nullable: true, optional: true,
nullable: false, optional: true,
},
//#region relations
isFollowing: {
@ -433,27 +430,27 @@ export const packedMeDetailedOnlySchema = {
},
injectFeaturedNote: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
receiveAnnouncementEmail: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
alwaysMarkNsfw: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
autoSensitive: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
carefulBot: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
autoAcceptFollowed: {
type: 'boolean',
nullable: true, optional: false,
nullable: false, optional: false,
},
noCrawle: {
type: 'boolean',
@ -538,7 +535,7 @@ export const packedMeDetailedOnlySchema = {
},
emailNotificationTypes: {
type: 'array',
nullable: true, optional: false,
nullable: false, optional: false,
items: {
type: 'string',
nullable: false, optional: false,