Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Applying Kristofer's fix #505

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions middleware/swagger-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ var processOperationParameters = function (swaggerMetadata, pathKeys, pathMatch,
var oVal;
var value;

debug(' %s', parameter.name);
debug(' %j', parameter.name);
debug(' Type: %s%s', pType, !_.isUndefined(parameter.format) ? ' (format: ' + parameter.format + ')': '');

// Located here to make the debug output pretty
oVal = mHelpers.getParameterValue(version, parameter, pathKeys, pathMatch, req, debug);
value = mHelpers.convertValue(oVal, _.isUndefined(parameter.schema) ? parameter : parameter.schema, pType, pLocation);

debug(' Value: %s', value);
debug(' Value: %j', value);

swaggerMetadata.params[parameter.name] = {
path: version === '1.2' ?
Expand Down