Files
paperspec/schemas/location.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

41 lines
834 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/location.schema.json",
"title": "Location",
"description": "One line of locations.jsonl; spec/07-geometry.md.",
"type": "object",
"properties": {
"node": {
"$ref": "common.schema.json#/$defs/nodeId"
},
"page_fp": {
"$ref": "common.schema.json#/$defs/hash"
},
"page": {
"type": "integer",
"minimum": 1
},
"page_label": {
"type": "string",
"minLength": 1
},
"boxes": {
"type": "array",
"items": {
"$ref": "common.schema.json#/$defs/box"
},
"minItems": 1
},
"approx": {
"const": true
}
},
"required": [
"node",
"page_fp",
"page",
"boxes"
],
"additionalProperties": false
}