mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: add async/timeout to hooks schema and validate in CI
- hooks.schema.json: add async (boolean) and timeout (number) properties to hookItem definition, matching fields used in hooks.json - validate-hooks.js: validate async and timeout types when present - hooks.test.js: add SessionEnd to required event types check
This commit is contained in:
parent
639c9aaca3
commit
40a4fafa7f
3 changed files with 20 additions and 0 deletions
|
|
@ -25,6 +25,15 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"async": {
|
||||
"type": "boolean",
|
||||
"description": "Run hook asynchronously in background without blocking"
|
||||
},
|
||||
"timeout": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"description": "Timeout in seconds for async hooks"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue