diff --git a/support/schemas/problemformat.cue b/support/schemas/problemformat.cue index 336aeb17..a3570946 100644 --- a/support/schemas/problemformat.cue +++ b/support/schemas/problemformat.cue @@ -1,25 +1,14 @@ package problemformat // Schemas relevant for the problem package format specification. +problem_package_format: string | *"legacy" -// Names for testgroups and testcases are alphanumerical with internal -// underscores and hyphens; such as "huge", "make_tree", "3", or "connected_graph-01", -// but not "huge_" or "-2". -let basename = "([A-Za-z0-9][A-Za-z0-9_-]*[A-Za-z0-9]|[A-Za-z0-9])" -name: =~"^\(basename)$" -// Filenames are somewhat like names, but can also contain '.' -// and have length at least 2, such as "good-solution_02.py" -// but not "huge_" or "a". -let filename = "[A-Za-z0-9][A-Za-z0-9_.-]*[A-Za-z0-9]" - -filepath: =~"^/?\(filename)(/\(filename))*$" -casepath: =~"^\(filename)(/\(basename))*$" // Test data settings #testdata_settings: { - input_validator_flags?: *"" | string | {[string]: string} + input_validator_flags?: *"" | string | {[string]: string} output_validator_flags?: *"" | string grading?: { score?: >0