mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix config def
This commit is contained in:
1 file changed
+6
-1
@@ -36,7 +36,12 @@ export const JudgeSettings = Schema.object({
|
|||||||
Schema.const('full'),
|
Schema.const('full'),
|
||||||
Schema.const('case'),
|
Schema.const('case'),
|
||||||
Schema.const('none'),
|
Schema.const('none'),
|
||||||
Schema.transform(Schema.boolean(), (v) => (v ? 'full' : 'case')),
|
Schema.transform(Schema.union([
|
||||||
|
Schema.boolean().deprecated(),
|
||||||
|
Schema.const('full'),
|
||||||
|
Schema.const('none'),
|
||||||
|
Schema.const('case'),
|
||||||
|
]), (v) => (typeof v === 'boolean' ? (v ? 'full' : 'case') : v)),
|
||||||
]).description('Show diff detail').default('full'),
|
]).description('Show diff detail').default('full'),
|
||||||
performance: Schema.boolean().description('Performance mode').default(false),
|
performance: Schema.boolean().description('Performance mode').default(false),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user