Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createEpsilonNode doesn't seem to match schemas #106

Open
isaacguerreir opened this issue Apr 13, 2024 · 0 comments
Open

createEpsilonNode doesn't seem to match schemas #106

isaacguerreir opened this issue Apr 13, 2024 · 0 comments

Comments

@isaacguerreir
Copy link

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.

this.graph[epsilonId] = {id: epsilonId, text: constants.EPSILON, component: constants.EPSILON, type: constants.EPSILON, edges: [], operator: []};

"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" }
}
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant