We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15f244 commit 9802d0bCopy full SHA for 9802d0b
1 file changed
src/presentation/http/schema/History.ts
@@ -10,6 +10,7 @@ export const HistotyRecordShema = {
10
'userId',
11
'createdAt',
12
'tools',
13
+ 'user',
14
],
15
properties: {
16
id: {
@@ -29,6 +30,19 @@ export const HistotyRecordShema = {
29
30
type: 'string',
31
format: 'date-time',
32
},
33
+ user: {
34
+ type: 'object',
35
+ properties: {
36
+ name: {
37
+ description: 'name of the user',
38
+ type: 'string',
39
+ },
40
+ photo: {
41
+ description: 'photo of the user',
42
43
44
45
46
content: {
47
description: 'content of certain version of the note',
48
type: 'object',
@@ -69,6 +83,7 @@ export const HistoryMetaSchema = {
69
83
'id',
70
84
71
85
86
72
87
73
88
74
89
0 commit comments