mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20: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',
|
||||
required: true,
|
||||
},
|
||||
content: [String],
|
||||
content: {
|
||||
type: [String],
|
||||
required: true,
|
||||
},
|
||||
speaker: { type: String, default: 'Ada' },
|
||||
color: String,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user