summaryrefslogtreecommitdiffstats
path: root/data/schemas/definitions.jsonschema
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-09-20 14:13:51 +0100
committerGitHub <noreply@github.com>2023-09-20 14:13:51 +0100
commitcdff9b8da710df29da2d977da0c6cf2b5ba1bf7b (patch)
treeeb4ce883f6efa4f674866e52345823bf90ae3eb1 /data/schemas/definitions.jsonschema
parent16ad362e6728bafcb1f79bec193a484148932551 (diff)
Restrict "feature" and "animation" keys (#21895)
Diffstat (limited to 'data/schemas/definitions.jsonschema')
-rw-r--r--data/schemas/definitions.jsonschema4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema
index b9c64a55ec..441e6395cf 100644
--- a/data/schemas/definitions.jsonschema
+++ b/data/schemas/definitions.jsonschema
@@ -29,6 +29,10 @@
"minLength": 1,
"maxLength": 250
},
+ "snake_case": {
+ "type": "string",
+ "pattern": "^[a-z][a-z0-9_]*$"
+ },
"layout_macro": {
"oneOf": [
{