judge: change objective config format

This commit is contained in:
undefined committed 2022-06-27 15:00:58 +08:00
1 parent e509bde41b
commit 76745639c1
7 files changed
+139 -87

No files matched your search

@@ -70,9 +70,16 @@ const problemConfigSchema = {
},
additionalProperties: false,
},
outputs: {
type: 'array',
minLength: 1,
answers: {
type: 'object',
patternProperties: {
'^\\d+(-\\d+)?$': {
type: 'array',
minLength: 2,
maxLength: 2,
},
},
additionalProperties: false,
},
},
additionalProperties: false,