Skip to content

createEpsilonNode doesn't seem to match schemas #106

@isaacguerreir

Description

@isaacguerreir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions