mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Fix Schema (#7347)
This commit is contained in:
parent
9cf811b048
commit
9e634360fa
@ -77,7 +77,7 @@ export class DriveFile {
|
|||||||
default: {},
|
default: {},
|
||||||
comment: 'The any properties of the DriveFile. For example, it includes image width/height.'
|
comment: 'The any properties of the DriveFile. For example, it includes image width/height.'
|
||||||
})
|
})
|
||||||
public properties: Record<string, any>;
|
public properties: { width?: number; height?: number; avgColor?: string };
|
||||||
|
|
||||||
@Index()
|
@Index()
|
||||||
@Column('boolean')
|
@Column('boolean')
|
||||||
|
@ -56,17 +56,25 @@ export const packedAntennaSchema = {
|
|||||||
type: 'array' as const,
|
type: 'array' as const,
|
||||||
optional: false as const, nullable: false as const,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: 'string' as const,
|
|
||||||
optional: false as const, nullable: false as const
|
|
||||||
}
|
|
||||||
},
|
|
||||||
execludeKeywords: {
|
|
||||||
type: 'array' as const,
|
type: 'array' as const,
|
||||||
optional: false as const, nullable: false as const,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: 'string' as const,
|
type: 'string' as const,
|
||||||
optional: false as const, nullable: false as const
|
optional: false as const, nullable: false as const
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
excludeKeywords: {
|
||||||
|
type: 'array' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
items: {
|
||||||
|
type: 'array' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
items: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: false as const
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
src: {
|
src: {
|
||||||
type: 'string' as const,
|
type: 'string' as const,
|
||||||
|
@ -197,12 +197,12 @@ export const packedDriveFileSchema = {
|
|||||||
properties: {
|
properties: {
|
||||||
width: {
|
width: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
optional: false as const, nullable: false as const,
|
optional: true as const, nullable: false as const,
|
||||||
example: 1280
|
example: 1280
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: 'number' as const,
|
type: 'number' as const,
|
||||||
optional: false as const, nullable: false as const,
|
optional: true as const, nullable: false as const,
|
||||||
example: 720
|
example: 720
|
||||||
},
|
},
|
||||||
avgColor: {
|
avgColor: {
|
||||||
|
Loading…
Reference in New Issue
Block a user