Permalink
Cannot retrieve contributors at this time
24 lines (24 sloc)
816 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@azure/core-http/dist-esm/src/operationParameter.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) Microsoft Corporation. | |
// Licensed under the MIT license. | |
/** | |
* Get the path to this parameter's value as a dotted string (a.b.c). | |
* @param parameter - The parameter to get the path string for. | |
* @returns The path to this parameter's value as a dotted string. | |
*/ | |
export function getPathStringFromParameter(parameter) { | |
return getPathStringFromParameterPath(parameter.parameterPath, parameter.mapper); | |
} | |
export function getPathStringFromParameterPath(parameterPath, mapper) { | |
let result; | |
if (typeof parameterPath === "string") { | |
result = parameterPath; | |
} | |
else if (Array.isArray(parameterPath)) { | |
result = parameterPath.join("."); | |
} | |
else { | |
result = mapper.serializedName; | |
} | |
return result; | |
} | |
//# sourceMappingURL=operationParameter.js.map |