diff --git a/src/routing.ts b/src/routing.ts index 2fdff64..ab2b41e 100644 --- a/src/routing.ts +++ b/src/routing.ts @@ -88,9 +88,12 @@ export class Route { else if (parameter.location == "body") bodyParameter = parameter as BodyParameter else if (parameter.location == "header") - paramSchemas[parameter.location][parameter.options.altName ?? name.replace(/_/g, "-")] = parameter.schema! + paramSchemas[parameter.location][ + parameter.options.altName ?? name.replace(/_/g, "-") + ] = parameter.schema! else - paramSchemas[parameter.location][parameter.options.altName ?? name] = parameter.schema! + paramSchemas[parameter.location][parameter.options.altName ?? name] = + parameter.schema! } let body: ZodRequestBody | undefined = undefined if (bodyParameter) {