camunda / element-templates-json-schema

JSON Schema for (Camunda) Element Templates
10 stars 7 forks source link

feat(zeebe): add icon schema #51

Closed pinussilvestrus closed 2 years ago

pinussilvestrus commented 2 years ago

Closes #50

Example

{
    "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
    "name": "Rest Connector",
    "id": "icon.template.rest",
    "appliesTo": [
      "bpmn:ServiceTask"
    ],
    "properties": [],
    "icon": {

      // data URL
      "contents": "data:image/svg+xml,%3Csvg width='24' height='24' ... %3C/svg%3E"

      // simple URL
      "contents": "https://user-images.githubusercontent.com/58601/160609748-cc18d1cc-aa32-43d0-bac3-058a9979aa5b.svg"
    }
  }
pinussilvestrus commented 2 years ago

Thanks for your feedback, I updated the test cases, added several more and adjusted the pattern: https://github.com/camunda/element-templates-json-schema/commit/b3ec790c07c8a813fe08dc3941016e7176451148.