sdk-java
sdk-java copied to clipboard
WorkflowValidator validate Wrokflow.tojson(workflow) failed
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: