Skip to content

Instantly share code, notes, and snippets.

@raunakdoesdev
Last active June 1, 2023 05:37
Show Gist options
  • Save raunakdoesdev/c25713e15ff0b78fd0ddd1941777d6cb to your computer and use it in GitHub Desktop.
Save raunakdoesdev/c25713e15ff0b78fd0ddd1941777d6cb to your computer and use it in GitHub Desktop.
{
"$ref": "#/definitions/extension",
"definitions": {
"extension": {
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"name": {
"type": "string",
"description": "The extension name."
},
"version": {
"type": "string",
"description": "The extension version in semver format (e.g. 1.0.0).",
"default": "0.0.0"
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The node name."
},
"path": {
"type": "string",
"description": "The path to the module in the extension (e.g. 'src/Node.tsx')."
},
"operator": {
"type": "string",
"description": "Node operator, if app is specified, this is ignored."
},
"applet": {
"type": "string",
"description": "If this node launches an app, the path of the corresponding app node."
},
"num_inputs": {
"type": "number",
"default": 1,
"description": "Initial number of inputs."
},
"num_outputs": {
"type": "number",
"default": 1,
"description": "Initial number of outputs."
},
"data": {
"description": "Initial value of node data field, defaults to undefined."
},
"metadata": {
"description": "Node metadata (can insert anything here)."
}
},
"required": [
"name",
"path"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"nodes"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment