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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user