Express 5, scanner on API v2, v1 deprecation headers (1.51.3)

- Express 5 (qs query parser and req.body = {} kept as in Express 4).
- Scanner and at-the-door check-in use /api/v2/checkin; look-up gives attendee, bookedBy,
  ticketOptionId.
- Shared middleware errors on /api/v2 rewritten to { error: { code, message, reason } };
  apiFetch treats reason like v1's code.
- Deprecation + Link: rel="successor-version" on v1 endpoints that have a v2 replacement.
- Roadmap: open question on how much of v1 to retire in 2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
This commit is contained in:
2026-10-29 09:46:24 +02:00
co-authored by Claude Opus 5.5
parent 1b7adcf7fe
commit 91047bcde2
24 changed files with 681 additions and 592 deletions
@@ -2207,6 +2207,19 @@
}
]
},
"ticketOptionId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "null"
}
],
"description": "For section checks"
},
"ticketName": {
"anyOf": [
{
@@ -2227,7 +2240,7 @@
}
]
},
"holder": {
"attendee": {
"anyOf": [
{
"type": "string"
@@ -2236,7 +2249,18 @@
"type": "null"
}
],
"description": "The attendee named on it, or the person who registered"
"description": "The attendee named on it, if any"
},
"bookedBy": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Who registered"
},
"quantity": {
"type": "integer",
@@ -2294,9 +2318,11 @@
"id",
"eventId",
"eventTitle",
"ticketOptionId",
"ticketName",
"variant",
"holder",
"attendee",
"bookedBy",
"quantity",
"remaining",
"session",
@@ -3201,6 +3227,10 @@
"type": "string"
},
"description": "Per-field problems (VALIDATION_FAILED only)"
},
"reason": {
"type": "string",
"description": "A more specific cause when there is one, e.g. TWO_FACTOR_REQUIRED, IMPERSONATION_ENDED, LICENCE_READ_ONLY, OTHER_CAMPUS"
}
}
}
+8 -2
View File
@@ -299,6 +299,8 @@ export interface components {
fields?: {
[key: string]: string;
};
/** @description A more specific cause when there is one, e.g. TWO_FACTOR_REQUIRED, IMPERSONATION_ENDED, LICENCE_READ_ONLY, OTHER_CAMPUS */
reason?: string;
};
};
};
@@ -1043,10 +1045,14 @@ export interface operations {
id: string;
eventId: string;
eventTitle: string | null;
/** @description For section checks */
ticketOptionId: string | null;
ticketName: string | null;
variant: string | null;
/** @description The attendee named on it, or the person who registered */
holder: string | null;
/** @description The attendee named on it, if any */
attendee: string | null;
/** @description Who registered */
bookedBy: string | null;
quantity: number;
/** @description Still to check in (this session, on multi-day events) */
remaining: number;