Skip to content

Commit

Permalink
CUE schema: much simpler #testdata_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thorehusfeldt committed Mar 4, 2024
1 parent 9f54cce commit 14bd5f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions support/schemas/testdata.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package problemformat


#filename: =~ "^[a-zA-Z0-9][a-zA-Z0-9_.-]*[a-zA-Z0-9]$"
#path: =~ "[a-zA-Z0-9_.-/]*"

#testdata_settings: {
input_validator_flags?: *"" | string | { [string]: string }
output_validator_flags?: *"" |string
grading?: {
score?: >0
max_score?: >0
aggregation?: "sum" | "min"
}
}

0 comments on commit 14bd5f1

Please sign in to comment.