-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
It seems method createEpsilonNode from Graph class is creating a Node that does not fit the schema defined on the graph.schema.json. I would like to ask if Nodes are suppose to have a component field also.
constellation-js/lib/stateGraph.js
Line 87 in 1d6479f
| this.graph[epsilonId] = {id: epsilonId, text: constants.EPSILON, component: constants.EPSILON, type: constants.EPSILON, edges: [], operator: []}; |
constellation-js/schemas/graph.schema.json
Lines 59 to 84 in 1d6479f
| "node": { | |
| "type": "object", | |
| "required": ["id", "text", "type", "edges"], | |
| "properties": { | |
| "id": { "$ref": "#/definitions/uuid" }, | |
| "text": { | |
| "anyOf": [ | |
| { "$ref": "#/definitions/node_type" }, | |
| { "type": "string", "pattern": "^.*$"} | |
| ] | |
| }, | |
| "type": { "$ref": "#/definitions/node_type" }, | |
| "edges": { | |
| "anyOf": [ | |
| {"type": "array", "items": { "$ref": "#/definitions/edge" }}, | |
| {"type": "array", "items": { "$ref": "#/definitions/uuid" }} | |
| ] | |
| }, | |
| "operator": { | |
| "type": "array", | |
| "items": { "$ref": "#/definitions/operator" } | |
| } | |
| } | |
| } | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels