diff --git a/schemas/edge.schema.json b/schemas/edge.schema.json new file mode 100644 index 0000000..47f0826 --- /dev/null +++ b/schemas/edge.schema.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "mindnet_edge", + "type": "object", + "required": ["src_id", "dst_id", "edge_type", "scope"], + "properties": { + "src_id": {"type": "string"}, + "dst_id": {"type": "string"}, + "edge_type": {"type": "string"}, + "scope": {"type": "string", "enum": ["note","chunk"]}, + "weight": {"type": "number"}, + "meta": {"type": "object"}, + "created_at": {"type": "string"} + }, + "additionalProperties": true +}