Initial commit
check / check (macos-latest) (push) Canceled after 0s
check / check (ubuntu-latest) (push) Canceled after 0s

This commit is contained in:
alexm committed 2026-10-11 23:45:29 -04:00
commit 62f54ed869
373 files changed
+16704

No files matched your search

+164
View File
@@ -0,0 +1,164 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://scient.ing/ns/schemas/backend.schema.json",
"title": "Backend declaration",
"description": "scienting-backend/1: a tool's code and weight licenses and their conditions; spec/14-rights.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-backend/1"
},
"name": {
"$ref": "common.schema.json#/$defs/key"
},
"version": {
"type": "string",
"minLength": 1
},
"stage": {
"enum": [
"read",
"review",
"gloss",
"embed",
"digitize",
"other"
]
},
"processor": {
"$ref": "common.schema.json#/$defs/processor"
},
"code_license": {
"$ref": "common.schema.json#/$defs/license"
},
"weights": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"license": {
"$ref": "common.schema.json#/$defs/license"
},
"url": {
"$ref": "common.schema.json#/$defs/url"
}
},
"required": [
"name",
"license"
],
"additionalProperties": false
}
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/key"
},
"kind": {
"enum": [
"revenue-cap",
"no-competition",
"purpose"
]
},
"usd": {
"type": "integer",
"minimum": 1
},
"vendor": {
"type": "string",
"minLength": 1
},
"allowed": {
"type": "array",
"items": {
"enum": [
"research",
"personal",
"education",
"startup",
"commercial"
]
},
"minItems": 1
},
"source": {
"$ref": "common.schema.json#/$defs/url"
},
"note": {
"type": "string",
"minLength": 1
}
},
"required": [
"id",
"kind"
],
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "revenue-cap"
}
}
},
"then": {
"required": [
"usd"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "no-competition"
}
}
},
"then": {
"required": [
"vendor"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "purpose"
}
}
},
"then": {
"required": [
"allowed"
]
}
}
]
}
}
},
"required": [
"format",
"name",
"version",
"stage",
"processor",
"code_license",
"weights",
"conditions"
],
"additionalProperties": false
}