155 lines
3.3 KiB
JSON
155 lines
3.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://scient.ing/ns/schemas/provenance.schema.json",
|
|
"title": "Provenance",
|
|
"description": "provenance.json of a package; spec/12-package.md.",
|
|
"type": "object",
|
|
"properties": {
|
|
"tools": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"version"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"backends": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"declaration": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"version"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"readings": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"witness": {
|
|
"$ref": "common.schema.json#/$defs/nodeId"
|
|
},
|
|
"backend": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"sha256": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"witness",
|
|
"backend",
|
|
"sha256"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"stages": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"stage": {
|
|
"enum": [
|
|
"acquire",
|
|
"read",
|
|
"witness",
|
|
"assemble",
|
|
"reconcile",
|
|
"segment",
|
|
"locate",
|
|
"structure",
|
|
"figures",
|
|
"mint",
|
|
"suspects",
|
|
"review",
|
|
"gate",
|
|
"finalize",
|
|
"export",
|
|
"hand"
|
|
]
|
|
},
|
|
"tool": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"inputs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
}
|
|
},
|
|
"output": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
},
|
|
"processor": {
|
|
"$ref": "common.schema.json#/$defs/processor"
|
|
},
|
|
"uses": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"job": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"stage",
|
|
"processor"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"session": {
|
|
"type": "object"
|
|
},
|
|
"note": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"tools"
|
|
],
|
|
"additionalProperties": false
|
|
}
|