The Fastify JSON Schema for POST /v1/ingest/events used additionalProperties:false on the root object. CRM direct-forward smokes that attach batch metadata beside events were rejected with HTTP 400 before the handler. - ingestJsonSchemas.ts: shared event and batch schemas - ingestJsonSchemas.test.ts: Ajv regression without MySQL - integration.twoProjects.test.ts: end-to-end case when DB URL set - docs/RUNBOOK_INGEST_DEBUG.md: document batch-level forwards Paperclip-Agent: 0b1fcf92-5fe3-4ac0-9f29-df4ab72f5376 Paperclip-Issue: BIT-933 Paperclip-Run: f027c017-4cbf-4819-84bb-85922e5c0407 Made-with: Cursor
34 lines
799 B
JSON
34 lines
799 B
JSON
{
|
|
"name": "@bitreport/error-reporting-ingest-api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Passive HTTP ingest for BitReport central error reporting (BIT-154.3)",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/swagger": "^8.15.0",
|
|
"@fastify/swagger-ui": "^3.1.0",
|
|
"dotenv": "^16.4.5",
|
|
"fastify": "^4.28.1",
|
|
"mysql2": "^3.11.5",
|
|
"prom-client": "^15.1.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.9.0",
|
|
"ajv": "^8.18.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.6.3",
|
|
"vitest": "^2.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|