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

83 lines
1.7 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/profile.schema.json",
"title": "Team profile",
"description": "scienting-profile/1: what backend conditions ask about a team; spec/14-rights.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-profile/1"
},
"team": {
"$ref": "common.schema.json#/$defs/key"
},
"purpose": {
"enum": [
"research",
"personal",
"education",
"startup",
"commercial"
]
},
"revenue_or_funding_usd": {
"anyOf": [
{
"type": "object",
"properties": {
"at_most": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
]
}
},
"required": [
"at_most"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"competes_with": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
{
"type": "null"
}
]
},
"recorded_by": {
"$ref": "common.schema.json#/$defs/key"
},
"at": {
"$ref": "common.schema.json#/$defs/time"
}
},
"required": [
"format",
"team",
"purpose",
"revenue_or_funding_usd",
"competes_with",
"recorded_by",
"at"
],
"additionalProperties": false
}