Skip to content

WorkflowValidator validate Wrokflow.tojson(workflow) failed #232

New issue

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

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

Already on GitHub? # to your account

Closed
leo-li1990 opened this issue Jul 4, 2023 · 0 comments · Fixed by #362
Closed

WorkflowValidator validate Wrokflow.tojson(workflow) failed #232

leo-li1990 opened this issue Jul 4, 2023 · 0 comments · Fixed by #362
Assignees
Labels
bug Something isn't working spec:0.8

Comments

@leo-li1990
Copy link

leo-li1990 commented Jul 4, 2023

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:
@leo-li1990 leo-li1990 changed the title WorkflowValidator validate Wrokflow WorkflowValidator validate Wrokflow.tojson(workflow) failed Jul 4, 2023
@tsurdilo tsurdilo self-assigned this Jul 11, 2023
@tsurdilo tsurdilo added the bug Something isn't working label Jul 11, 2023
ricardozanini added a commit to ricardozanini/sdk-java that referenced this issue May 28, 2024
Signed-off-by: Ricardo Zanini <zanini@redhat.com>
ricardozanini added a commit to ricardozanini/sdk-java that referenced this issue May 28, 2024
Signed-off-by: Ricardo Zanini <zanini@redhat.com>
ricardozanini added a commit that referenced this issue May 28, 2024
Fix #232 - Add Errors validation to skipMessages
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working spec:0.8
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants