Files
paperspec/schemas/roster.schema.json
T
alexm 62f54ed869
check / check (macos-latest) (push) Canceled after 0s
check / check (ubuntu-latest) (push) Canceled after 0s
Initial commit
2026-10-11 23:45:29 -04:00

101 lines
2.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://scient.ing/ns/schemas/roster.schema.json",
"title": "Roster",
"description": "scienting-roster/1: the keys that may sign; spec/08-fidelity.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-roster/1"
},
"store": {
"$ref": "common.schema.json#/$defs/key"
},
"keys": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "common.schema.json#/$defs/key"
},
"person": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"orcid": {
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]$"
},
"email": {
"type": "string",
"minLength": 1
}
},
"required": [
"name"
],
"additionalProperties": false
},
"scheme": {
"enum": [
"ed25519",
"ssh",
"gpg",
"sigstore"
]
},
"public": {
"type": "string",
"minLength": 1
},
"purposes": {
"type": "array",
"items": {
"enum": [
"sign",
"spot-check",
"export"
]
},
"minItems": 1,
"uniqueItems": true
},
"registered_at": {
"$ref": "common.schema.json#/$defs/time"
},
"revoked_at": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/time"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"person",
"scheme",
"public",
"purposes",
"registered_at",
"revoked_at"
],
"additionalProperties": false
}
}
},
"required": [
"format",
"store",
"keys"
],
"additionalProperties": false
}