fix(api): pattern-constrain humiliations id; broaden canon log boundary tests
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "text", "weight", "turn"],
|
||||
"properties": {
|
||||
"id": { "type": "string", "minLength": 1 },
|
||||
"id": { "type": "string", "minLength": 1, "pattern": "^[a-z0-9_]+$" },
|
||||
"text": { "type": "string", "minLength": 1 },
|
||||
"weight": { "type": "integer", "minimum": 1, "maximum": 10 },
|
||||
"turn": { "type": "integer", "minimum": 0 }
|
||||
|
||||
Reference in New Issue
Block a user