First implementation (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
1 parent
34c0abb26a
commit
4fa326dc76
534 files changed
+28280
-37
No files matched your search
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://paperspec.scient.ing/schemas/view.schema.json",
|
||||
"title": "View",
|
||||
"description": "A Vega-Lite specification whose usermeta.scienting pins its data: scienting-view/1; spec/17-views.md.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"$schema",
|
||||
"usermeta"
|
||||
],
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"pattern": "^https://vega\\.github\\.io/schema/vega-lite/v[0-9]+(\\.[0-9]+)*\\.json$"
|
||||
},
|
||||
"usermeta": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"scienting"
|
||||
],
|
||||
"properties": {
|
||||
"scienting": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"format": {
|
||||
"const": "scienting-view/1"
|
||||
},
|
||||
"id": {
|
||||
"$ref": "common.schema.json#/$defs/key"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"$ref": "common.schema.json#/$defs/datasetId"
|
||||
},
|
||||
"dataset": {
|
||||
"$ref": "common.schema.json#/$defs/datasetId"
|
||||
},
|
||||
"hash": {
|
||||
"$ref": "common.schema.json#/$defs/hash"
|
||||
},
|
||||
"resource": {
|
||||
"$ref": "common.schema.json#/$defs/key"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"dataset",
|
||||
"hash",
|
||||
"resource"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"computation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"claim": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"pin": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"runtime": {
|
||||
"const": "pyodide"
|
||||
},
|
||||
"inputs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"param": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"param",
|
||||
"name"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"claim",
|
||||
"pin",
|
||||
"runtime",
|
||||
"inputs"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"format",
|
||||
"id",
|
||||
"data"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user