Skip to content

WorkflowValidator validate Wrokflow.tojson(workflow) failed #232

Closed
@leo-li1990

Description

@leo-li1990

What happened: A Workflow object does not contain the events property,when use Workflow.tojson() generate JSON strings,The strings contains “ errors:[]”. If you use workflowValidator.setSource("WORKFLOW_MODEL_JSON").isValid(), you can get an error massage, such as "msg": "[{"message":"#/errors: expected type: JSONObject, found: JSONArray","type":"schemavalidation"}]"

What you expected to happen:
The Json strings do not contain " errors :[]", or validate success

How to reproduce it:

Anything else we need to know?:

Environment:

  • Specification version used:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingspec:0.8

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions