Trim registration input in vehicle creation and add contactName parameter to OpenAPI spec and related routes.

This commit is contained in:
Jeppe Bundgaard
2026-01-08 13:16:32 +01:00
parent 338c244e53
commit 0d96bf6219
3 changed files with 11 additions and 1 deletions
@@ -193,6 +193,8 @@ class vehiclesRoute
$reg = (string)self::getParameter('reg');
$type = (int)self::getParameter('type');
$subscription = (bool)self::getParameter('wash_subscription');
// Strip the registration number of whitespace
$reg = trim($reg);
// Create a new vehicle
$vehicle = new customer_vehicles_o();
$vehicle->add(