Files
paperspec/schemas/grade.schema.json
T
alexm 4fa326dc76
check / check (push) Successful in 42s
site / site (push) Successful in 3m4s
First implementation (#1)
Reviewed-on: #1
2026-10-15 05:47:05 -04:00

64 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/grade.schema.json",
"title": "Grade",
"description": "scienting-grade/1: the grader's result for one submission; spec/19-exercises.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-grade/1"
},
"submission": {
"$ref": "common.schema.json#/$defs/recordId"
},
"exercise": {
"type": "string",
"pattern": "^tag:scient\\.ing,2026:annotation:[a-z0-9][a-z0-9._-]*/[a-hjkmnp-tv-z][0-9a-hjkmnp-tv-z]{6,25}$"
},
"score": {
"$ref": "common.schema.json#/$defs/decimal"
},
"max": {
"$ref": "common.schema.json#/$defs/decimal"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"element": {
"type": "string",
"minLength": 1
},
"points": {
"$ref": "common.schema.json#/$defs/decimal"
},
"max": {
"$ref": "common.schema.json#/$defs/decimal"
},
"feedback": {
"type": "string"
}
},
"required": [
"element",
"points",
"max",
"feedback"
],
"additionalProperties": false
},
"minItems": 1
}
},
"required": [
"format",
"submission",
"exercise",
"score",
"max",
"items"
],
"additionalProperties": false
}