Last active
June 1, 2023 05:37
-
-
Save raunakdoesdev/c25713e15ff0b78fd0ddd1941777d6cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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