@camunda/zeebe-configuration-templates-json-schema
v0.2.0
Published
JSON Schema for Camunda 8 Configuration Templates
Readme
@camunda/zeebe-configuration-templates-json-schema
JSON Schema for (Zeebe) Configuration Templates. A configuration template is a declarative JSON document that defines the structure and UI rendering of a configuration (e.g. a credential) — what fields it contains and how they appear in the configuration editor. The schema is built on top of and validated by json-schema@draft-07.
A configuration template mirrors the element template top-level structure, restricted to what a configuration needs: every property uses the property binding, the Configuration property type and feel are not supported, and a kind discriminates the class of configuration produced.
Usage
Set the $schema attribute to reference the JSON Schema definition.
{
"$schema": "https://unpkg.com/@camunda/zeebe-configuration-templates-json-schema/resources/schema.json",
"name": "AWS Credential",
"id": "io.camunda:aws-credential:1",
"kind": "CREDENTIAL",
"version": 1,
"properties": [
{
"label": "Access key",
"type": "String",
"secret": true,
"binding": { "type": "property", "name": "accessKey" }
}
]
}You can also use a specific version.
"$schema": "https://unpkg.com/@camunda/[email protected]/resources/schema.json"Build and Run
Prepare the project by installing all dependencies:
npm installBundle the source schema files together
npm run buildExecute the following command to run the generated schema against the tests
npm run testLicense
MIT
