Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Oct 10, 2023
1 parent 10dc026 commit 0fab7ce
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ export const template = {
'scriptFormat': 'js'
}
},

// For backwards compatibility support missing attributes as well
{
'label': 'bar5',
'binding': {
'type': 'camunda:executionListener'
}
},

// For backwards compatibility support scriptFormat only
{
'label': 'bar5',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,106 +32,106 @@ export const template = {

export const errors = [
{
dataPath: "/properties/0/binding/implementationType",
keyword: "enum",
message: "should be equal to one of the allowed values",
dataPath: '/properties/0/binding/implementationType',
keyword: 'enum',
message: 'should be equal to one of the allowed values',
params: {
allowedValues: [
"class",
"delegateExpression",
"expression",
"script"
'class',
'delegateExpression',
'expression',
'script'
]
},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum"
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum'
},
{
dataPath: "/properties/0",
keyword: "if",
message: "should match \"then\" schema",
dataPath: '/properties/0',
keyword: 'if',
message: 'should match "then" schema',
params: {
failingKeyword: "then"
failingKeyword: 'then'
},
schemaPath: "#/allOf/1/items/allOf/1/if"
schemaPath: '#/allOf/1/items/allOf/1/if'
},
{
dataPath: '/properties/1/binding',
keyword: "oneOf",
message: "should match exactly one schema in oneOf",
keyword: 'oneOf',
message: 'should match exactly one schema in oneOf',
params: {
passingSchemas: [
0,
1
]
},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/oneOf"
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/oneOf'
},
{
dataPath: '/properties/1',
keyword: "if",
message: "should match \"then\" schema",
keyword: 'if',
message: 'should match "then" schema',
params: {
failingKeyword: "then",
failingKeyword: 'then',
},
schemaPath: "#/allOf/1/items/allOf/1/if"
schemaPath: '#/allOf/1/items/allOf/1/if'
},
{
dataPath: '/properties/2/binding',
keyword: "not",
message: "should NOT be valid",
keyword: 'not',
message: 'should NOT be valid',
params: {},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not"
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not'
},
{
dataPath: '/properties/2/binding',
keyword: "required",
keyword: 'required',
message: "should have required property 'scriptFormat'",
params: {
missingProperty: "scriptFormat"
missingProperty: 'scriptFormat'
},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required"
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required'
},
{
dataPath: '/properties/2/binding',
keyword: "not",
message: "should NOT be valid",
keyword: 'not',
message: 'should NOT be valid',
params: {},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not"
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not'
},
{
dataPath: '/properties/2/binding',
keyword: "oneOf",
message: "should match exactly one schema in oneOf",
keyword: 'oneOf',
message: 'should match exactly one schema in oneOf',
params: {
passingSchemas: null
},
schemaPath: "#/allOf/1/items/allOf/1/then/properties/binding/oneOf"
},
schemaPath: '#/allOf/1/items/allOf/1/then/properties/binding/oneOf'
},
{
dataPath: '/properties/2',
keyword: "if",
message: "should match \"then\" schema",
keyword: 'if',
message: 'should match "then" schema',
params: {
failingKeyword: "then"
failingKeyword: 'then'
},
schemaPath: "#/allOf/1/items/allOf/1/if"
schemaPath: '#/allOf/1/items/allOf/1/if'
},
{
dataPath: "",
keyword: "type",
message: "should be array",
dataPath: '',
keyword: 'type',
message: 'should be array',
params: {
type: "array"
type: 'array'
},
schemaPath: "#/oneOf/1/type"
schemaPath: '#/oneOf/1/type'
},
{
dataPath: "",
keyword: "oneOf",
message: "should match exactly one schema in oneOf",
dataPath: '',
keyword: 'oneOf',
message: 'should match exactly one schema in oneOf',
params: {
passingSchemas: null
},
schemaPath: "#/oneOf"
schemaPath: '#/oneOf'
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe('validation', function() {


testTemplate('invalid-execution-listener-implementation-type');
})
});


describe('grouping', function() {
Expand Down

0 comments on commit 0fab7ce

Please sign in to comment.