Skip to content

Hidden property without value is allowed in the schema #181

@barmac

Description

@barmac

Describe the Bug

This template is valid according to the schema even though there is no value for result variable:

{
  "$schema": "./schema.json",
  "name": "Reusable Rule Template",
  "id": "io.camunda.examples.Decision",
  "description": "A reusable rule template",
  "version": 1,
  "engines": {
    "camunda": "^8.6"
  },
  "appliesTo": [
    "bpmn:Task",
    "bpmn:BusinessRuleTask"
  ],
  "elementType": {
    "value": "bpmn:BusinessRuleTask"
  },
  "properties": [
    {
      "type": "Hidden",
      "value": "decision",
      "binding": {
        "type": "zeebe:calledDecision",
        "property": "decisionId"
      }
    },
    {
      "type": "Hidden",
      "binding": {
        "type": "zeebe:calledDecision",
        "property": "resultVariable"
      }
    }
  ]
}

The property does not work yet is valid according to the JSON schema.

Steps to Reproduce

  1. Try out the template above

Expected Behavior

Any Hidden property should be invalid if it does not have value or generatedId unless it's a zeebe:userTask binding.

Environment

  • Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
  • OS: [e.g. Windows 7]
  • Library version: [e.g. 0.3.0]

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds reviewReview pendingspring cleaningCould be cleaned up one day

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions