Skip to content

Commit b88a28d

Browse files
committed
update schema
1 parent e7935ac commit b88a28d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

solidaritySchema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
{ "$ref": "#/definitions/file" },
2525
{ "$ref": "#/definitions/env" },
2626
{ "$ref": "#/definitions/shell" }
27+
{ "$ref": "#/definitions/custom" }
2728
]
2829
},
2930
"minItems": 1,
@@ -92,6 +93,20 @@
9293
"match": { "type": "string", "description": "A regexp to search the output." }
9394
},
9495
"required": ["rule", "match"]
96+
},
97+
"custom": {
98+
"description": "Custom Rule",
99+
"type": "object",
100+
"additionalProperties": true,
101+
"properties": {
102+
"rule": { "enum": [ "custom" ] },
103+
"plugin": { "type": "string" },
104+
"name": { "type": "string" },
105+
"platform": { "enum": ["darwin", "macos", "freebsd", "linux", "sunos", "win32", "windows"] },
106+
"error": { "type": "string" },
107+
"match": { "type": "string", "description": "A regexp to search the output." }
108+
},
109+
"required": ["rule", "plugin", "name"]
95110
}
96111
}
97112
}

0 commit comments

Comments
 (0)