Skip to content

Commit

Permalink
added schema
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamBindle committed Sep 21, 2023
1 parent ecb8f0d commit 58da8cd
Showing 1 changed file with 138 additions and 0 deletions.
138 changes: 138 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@


{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"inputs": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"name",
"type",
"description"
]
}
]
},
"outputs": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"name",
"type",
"description"
]
}
]
},
"references": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"url",
"text"
]
},
{
"type": "string"
}
]
}
},
"required": [
"description",
"inputs",
"outputs",
"references"
]
},
"toolkits": {
"type": "array",
"items": {
"type": "string"
}
},
"include": {
"type": "object",
"patternProperties": {
".*": { "type": "string" }
}
},
"run": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"op": {
"type": "string"
}
},
"required": [
"op"
]
},
{
"type": "integer"
},
{
"type": "float"
},
{
"type": "string"
}
]
}
},
"required": [
"metadata",
"toolkits",
"include",
"run"
]
}


0 comments on commit 58da8cd

Please sign in to comment.