JSON Schema for (Camunda) Element Templates
npm install @camunda/element-templates-json-schema
JSON Schema for (Camunda) Element Templates. The schema is built on top of and validated by json-schema@draft-07.
Set the $schema attribute to reference the JSON Schema definition.
``js`
{
"$schema": "https://unpkg.com/@camunda/element-templates-json-schema/resources/schema.json",
"name": "Mail Task",
"id": "com.camunda.example.MailTask",
"appliesTo": [ "bpmn:ServiceTask" ],
"properties": []
}
You can also use a specific version.
`js`
"$schema": "https://unpkg.com/@camunda/element-templates-json-schema@0.1.0/resources/schema.json"
Prepare the project by installing all dependencies:
`sh`
npm install
Bundle the source schema files together
`sh`
npm run build
Execute the following command to run the generated schema against the tests
`sh``
npm run test
MIT