Skip to content

Commit ab72150

Browse files
authored
Merge pull request #13 from continuedev/add-tags-field-schema
Add tags field to rules schema validation
2 parents d116b1a + e276869 commit ab72150

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

internal/validation/schema/rules-schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
"description": "The version of the ruleset",
3434
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
3535
},
36+
"tags": {
37+
"type": "array",
38+
"description": "Tags to categorize or label the ruleset",
39+
"items": {
40+
"type": "string",
41+
"minLength": 1,
42+
"maxLength": 50,
43+
"pattern": "^[a-zA-Z0-9-_]+$"
44+
},
45+
"uniqueItems": true,
46+
"maxItems": 20
47+
},
3648
"rules": {
3749
"type": "object",
3850
"description": "A map of rule names to their versions",

0 commit comments

Comments
 (0)