mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-23 07:32:40 +08:00
Fix validation error when saving scripts in debug window (v2.20.0 regression) (#2862)
* 更新版本 2.20.0 * Initial plan * Fix validation error when saving scripts by allowing unknown fields in POST /scripts Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> * Revert version.yaml to 2.19.2 - should not include version bump in bug fix PR Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --------- Co-authored-by: whyour <imwhyour@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
c61d1aa828
commit
073de76a4a
|
|
@ -130,7 +130,7 @@ export default (app: Router) => {
|
|||
originFilename: Joi.string().optional().allow(''),
|
||||
directory: Joi.string().optional().allow(''),
|
||||
file: Joi.string().optional().allow(''),
|
||||
}),
|
||||
}).unknown(true),
|
||||
}),
|
||||
async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user