Files
document-haness/schemas/source-pack.schema.json
T

99 lines
2.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://claridoc.local/schemas/source-pack.schema.json",
"title": "ClariDoc source pack",
"type": "object",
"additionalProperties": false,
"required": [
"sources"
],
"properties": {
"sources": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"title",
"url"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]+$",
"minLength": 1
},
"title": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"publisher": {
"type": "string"
},
"accessed": {
"type": "string"
},
"facts": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"notes": {
"type": "string"
},
"source_type": {
"type": "string"
},
"status": {
"type": "string"
},
"path": {
"type": "string"
},
"heading": {
"type": "string"
},
"line_start": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"line_end": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"claim_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"decision_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"priority": {
"type": "number"
}
}
}
}
}
}