Files
paperspec/schemas/stamps.schema.json
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

65 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/stamps.schema.json",
"title": "Stamp rules",
"description": "scienting-stamps/1: download-stamp line rules for page fingerprints; spec/07-geometry.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-stamps/1"
},
"id": {
"$ref": "common.schema.json#/$defs/key"
},
"learned": {
"type": "boolean"
},
"note": {
"type": "string",
"minLength": 1
},
"rules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/key"
},
"pattern": {
"type": "string",
"minLength": 1
},
"where": {
"enum": [
"any",
"margin"
]
},
"margin": {
"type": "number",
"exclusiveMinimum": 0
},
"note": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"pattern",
"where"
],
"additionalProperties": false
},
"minItems": 1
}
},
"required": [
"format",
"id",
"rules"
],
"additionalProperties": false
}