mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: set content in response to be required
This commit is contained in:
1 parent
fb6411e923
commit
ebd81f7cb4
1 file changed
+4
-1
@@ -7,7 +7,10 @@ const responseSchema = new Schema({
|
|||||||
default: 'dialogue',
|
default: 'dialogue',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
content: [String],
|
content: {
|
||||||
|
type: [String],
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
speaker: { type: String, default: 'Ada' },
|
speaker: { type: String, default: 'Ada' },
|
||||||
color: String,
|
color: String,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user