Skip to content

Commit a9ea00b

Browse files
yT0n1philippfromme
authored andcommitted
chore: fix lint errors
1 parent a3b3520 commit a9ea00b

File tree

5 files changed

+385
-385
lines changed

5 files changed

+385
-385
lines changed
Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,103 @@
11
export const template = {
2-
'$schema': 'https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json',
3-
'name': 'AdHoc Template',
4-
'id': 'io.camunda.examples.AdHoc.InvalidElementType',
5-
'version': 1,
6-
'appliesTo': [ 'bpmn:Activity' ],
7-
'elementType': { 'value': 'bpmn:' },
8-
'properties': [
9-
{
10-
'type': 'Hidden',
11-
'binding': { 'type': 'zeebe:taskDefinition', 'property': 'type' },
12-
'value': 'io.camunda.agenticai:aiagent-job-worker:1'
13-
},
14-
{
15-
'type': 'Hidden',
16-
'binding': { 'type': 'zeebe:adHoc', 'property': 'outputCollection' },
17-
'value': 'toolCallResults'
18-
},
19-
{
20-
'type': 'String',
21-
'binding': { 'type': 'zeebe:adHoc', 'property': 'outputElement' },
22-
'feel': 'required',
23-
'value': '={ id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult }'
24-
}
25-
]
26-
};
27-
28-
export const errors = [
2+
'$schema': 'https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json',
3+
'name': 'AdHoc Template',
4+
'id': 'io.camunda.examples.AdHoc.InvalidElementType',
5+
'version': 1,
6+
'appliesTo': [ 'bpmn:Activity' ],
7+
'elementType': { 'value': 'bpmn:' },
8+
'properties': [
299
{
30-
keyword: "errorMessage",
31-
dataPath: "/elementType/value",
32-
schemaPath: "#/allOf/0/properties/elementType/properties/value/errorMessage",
33-
params: {
34-
errors: [
35-
{
36-
keyword: "pattern",
37-
dataPath: "/elementType/value",
38-
schemaPath: "#/allOf/0/properties/elementType/properties/value/pattern",
39-
params: {
40-
pattern: "^[\\w\\d]+:[\\w\\d]+$"
41-
},
42-
message: "should match pattern \"^[\\w\\d]+:[\\w\\d]+$\"",
43-
emUsed: true
44-
}
45-
]
46-
},
47-
message: "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
10+
'type': 'Hidden',
11+
'binding': { 'type': 'zeebe:taskDefinition', 'property': 'type' },
12+
'value': 'io.camunda.agenticai:aiagent-job-worker:1'
4813
},
4914
{
50-
keyword: "const",
51-
dataPath: "/elementType/value",
52-
schemaPath: "#/allOf/1/allOf/9/then/anyOf/0/properties/elementType/properties/value/const",
53-
params: {
54-
allowedValue: "bpmn:AdHocSubProcess"
55-
},
56-
message: "should be equal to constant"
15+
'type': 'Hidden',
16+
'binding': { 'type': 'zeebe:adHoc', 'property': 'outputCollection' },
17+
'value': 'toolCallResults'
5718
},
5819
{
59-
keyword: "const",
60-
dataPath: "/appliesTo",
61-
schemaPath: "#/allOf/1/allOf/9/then/anyOf/1/properties/appliesTo/const",
62-
params: {
63-
allowedValue: [
64-
"bpmn:AdHocSubProcess"
65-
]
66-
},
67-
message: "should be equal to constant"
20+
'type': 'String',
21+
'binding': { 'type': 'zeebe:adHoc', 'property': 'outputElement' },
22+
'feel': 'required',
23+
'value': '={ id: toolCall._meta.id, name: toolCall._meta.name, content: toolCallResult }'
24+
}
25+
]
26+
};
27+
28+
export const errors = [
29+
{
30+
keyword: 'errorMessage',
31+
dataPath: '/elementType/value',
32+
schemaPath: '#/allOf/0/properties/elementType/properties/value/errorMessage',
33+
params: {
34+
errors: [
35+
{
36+
keyword: 'pattern',
37+
dataPath: '/elementType/value',
38+
schemaPath: '#/allOf/0/properties/elementType/properties/value/pattern',
39+
params: {
40+
pattern: '^[\\w\\d]+:[\\w\\d]+$'
41+
},
42+
message: 'should match pattern "^[\\w\\d]+:[\\w\\d]+$"',
43+
emUsed: true
44+
}
45+
]
6846
},
69-
{
70-
keyword: "anyOf",
71-
dataPath: "",
72-
schemaPath: "#/allOf/1/allOf/9/then/anyOf",
73-
params: {},
74-
message: "should match some schema in anyOf"
47+
message: 'invalid item for "elementType", should contain namespaced property, example: "bpmn:Task"'
48+
},
49+
{
50+
keyword: 'const',
51+
dataPath: '/elementType/value',
52+
schemaPath: '#/allOf/1/allOf/9/then/anyOf/0/properties/elementType/properties/value/const',
53+
params: {
54+
allowedValue: 'bpmn:AdHocSubProcess'
7555
},
76-
{
77-
keyword: "if",
78-
dataPath: "",
79-
schemaPath: "#/allOf/1/allOf/9/if",
80-
params: {
81-
failingKeyword: "then"
82-
},
83-
message: "should match \"then\" schema"
56+
message: 'should be equal to constant'
57+
},
58+
{
59+
keyword: 'const',
60+
dataPath: '/appliesTo',
61+
schemaPath: '#/allOf/1/allOf/9/then/anyOf/1/properties/appliesTo/const',
62+
params: {
63+
allowedValue: [
64+
'bpmn:AdHocSubProcess'
65+
]
8466
},
85-
{
86-
keyword: "type",
87-
dataPath: "",
88-
schemaPath: "#/oneOf/1/type",
89-
params: {
90-
type: "array"
91-
},
92-
message: "should be array"
67+
message: 'should be equal to constant'
68+
},
69+
{
70+
keyword: 'anyOf',
71+
dataPath: '',
72+
schemaPath: '#/allOf/1/allOf/9/then/anyOf',
73+
params: {},
74+
message: 'should match some schema in anyOf'
75+
},
76+
{
77+
keyword: 'if',
78+
dataPath: '',
79+
schemaPath: '#/allOf/1/allOf/9/if',
80+
params: {
81+
failingKeyword: 'then'
9382
},
94-
{
95-
keyword: "oneOf",
96-
dataPath: "",
97-
schemaPath: "#/oneOf",
98-
params: {
99-
passingSchemas: null
100-
},
101-
message: "should match exactly one schema in oneOf"
102-
}
83+
message: 'should match "then" schema'
84+
},
85+
{
86+
keyword: 'type',
87+
dataPath: '',
88+
schemaPath: '#/oneOf/1/type',
89+
params: {
90+
type: 'array'
91+
},
92+
message: 'should be array'
93+
},
94+
{
95+
keyword: 'oneOf',
96+
dataPath: '',
97+
schemaPath: '#/oneOf',
98+
params: {
99+
passingSchemas: null
100+
},
101+
message: 'should match exactly one schema in oneOf'
102+
}
103103
];

packages/zeebe-element-templates-json-schema/test/fixtures/ad-hoc/invalid-feel-output-collection.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,38 @@ export const template = {
2727
};
2828

2929
export const errors = [
30-
{
31-
keyword: "not",
32-
dataPath: "/properties/1",
33-
schemaPath: "#/allOf/1/items/allOf/23/allOf/1/then/not",
34-
params: {},
35-
message: "should NOT be valid"
30+
{
31+
keyword: 'not',
32+
dataPath: '/properties/1',
33+
schemaPath: '#/allOf/1/items/allOf/23/allOf/1/then/not',
34+
params: {},
35+
message: 'should NOT be valid'
36+
},
37+
{
38+
keyword: 'if',
39+
dataPath: '/properties/1',
40+
schemaPath: '#/allOf/1/items/allOf/23/allOf/1/if',
41+
params: {
42+
failingKeyword: 'then'
3643
},
37-
{
38-
keyword: "if",
39-
dataPath: "/properties/1",
40-
schemaPath: "#/allOf/1/items/allOf/23/allOf/1/if",
41-
params: {
42-
failingKeyword: "then"
43-
},
44-
message: "should match \"then\" schema"
44+
message: 'should match "then" schema'
45+
},
46+
{
47+
keyword: 'type',
48+
dataPath: '',
49+
schemaPath: '#/oneOf/1/type',
50+
params: {
51+
type: 'array'
4552
},
46-
{
47-
keyword: "type",
48-
dataPath: "",
49-
schemaPath: "#/oneOf/1/type",
50-
params: {
51-
type: "array"
52-
},
53-
message: "should be array"
53+
message: 'should be array'
54+
},
55+
{
56+
keyword: 'oneOf',
57+
dataPath: '',
58+
schemaPath: '#/oneOf',
59+
params: {
60+
passingSchemas: null
5461
},
55-
{
56-
keyword: "oneOf",
57-
dataPath: "",
58-
schemaPath: "#/oneOf",
59-
params: {
60-
passingSchemas: null
61-
},
62-
message: "should match exactly one schema in oneOf"
63-
}
64-
];
62+
message: 'should match exactly one schema in oneOf'
63+
}
64+
];

0 commit comments

Comments
 (0)