mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 05:26:03 +02:00
refactor: rename schema to json-schema
This commit is contained in:
25
packages/backend/src/models/json-schema/note-reaction.ts
Normal file
25
packages/backend/src/models/json-schema/note-reaction.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export const packedNoteReactionSchema = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: {
|
||||
type: 'string',
|
||||
optional: false, nullable: false,
|
||||
format: 'id',
|
||||
example: 'xxxxxxxxxx',
|
||||
},
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
optional: false, nullable: false,
|
||||
format: 'date-time',
|
||||
},
|
||||
user: {
|
||||
type: 'object',
|
||||
optional: false, nullable: false,
|
||||
ref: 'UserLite',
|
||||
},
|
||||
type: {
|
||||
type: 'string',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
Reference in New Issue
Block a user