mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-03 10:14:47 +00:00
Scaffold LogicSRC and CommandBoard plugins
This commit is contained in:
parent
59927e140c
commit
5c9ea821f6
67 changed files with 5958 additions and 0 deletions
25
packages/schemas/schemas/logicsrc-event.schema.json
Normal file
25
packages/schemas/schemas/logicsrc-event.schema.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://schemas.logicsrc.com/logicsrc-event.schema.json",
|
||||
"title": "LogicSRC Event",
|
||||
"type": "object",
|
||||
"required": ["type", "version", "event", "id", "created_at", "actor_did", "resource_type", "resource_id", "data"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": { "const": "logicsrc.event" },
|
||||
"version": { "type": "string", "pattern": "^\\d+\\.\\d+(\\.\\d+)?$" },
|
||||
"event": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"id": { "type": "string", "minLength": 1 },
|
||||
"created_at": { "type": "string", "format": "date-time" },
|
||||
"actor_did": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9][a-z0-9._-]*\\.[a-z0-9][a-z0-9._-]*$"
|
||||
},
|
||||
"resource_type": { "type": "string", "minLength": 1 },
|
||||
"resource_id": { "type": "string", "minLength": 1 },
|
||||
"data": { "type": "object" }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue