再確認

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

View File

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

View File

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

View File

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