diff --git a/src/schema-routes/schema-routes.js b/src/schema-routes/schema-routes.js index 81a73a8f..059837ef 100644 --- a/src/schema-routes/schema-routes.js +++ b/src/schema-routes/schema-routes.js @@ -640,10 +640,11 @@ class SchemaRoutes { } return { - paramName: + paramName: camelCase( requestBodyName || - (requestBody && requestBody.name) || - DEFAULT_BODY_ARG_NAME, + (requestBody && requestBody.name) || + DEFAULT_BODY_ARG_NAME, + ), contentTypes, contentKind, schema,