Skip to content

Commit

Permalink
CUE schema: do not allow {count} for visualizers
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Nov 14, 2024
1 parent 75c2c5f commit a486075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support/schemas/generators.cue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ import "struct"
// - {seed} can occur at most once
// - {name} and {count} can occur any number of times
command: !="" & (=~"^([^{}]|\\{name\\}|\\{count\\})*(\\{seed(:[0-9]+)?\\})?([^{}]|\\{name\\}|\\{count\\})*$")
// Same, but not allowing {count}.
visualizer_command: !="" & (=~"^([^{}]|\\{name\\})*(\\{seed(:[0-9]+)?\\})?([^{}]|\\{name\\})*$")

#config: {
"testdata.yaml"?: #testdata_settings
// Path to solution starts with slash, such as "/submissions/accepted/foo.py"
solution?: filepath & =~"^/"
// Path to visualiser can be omitted
visualizer?: command & =~"^/" | null
visualizer?: visualizer_command & =~"^/" | null
random_salt?: string
}

Expand Down

0 comments on commit a486075

Please sign in to comment.