async function getPathParameters(path, objParameters) {
    if (!path) {
        return objParameters;
    }
    const origObjParameters = objParameters;
    try {
        if (path.split('{').length > 1) {
            let name = ' ';
            let cnt = 0;
            while (path.includes('{')) {
                name = await utils.stack0SymbolRecognizer(path, '{', '}');
                path = path.split('{' + name + '}');
                path = path.join('');

                if (!!objParameters[name] === false)
                    if (swaggerTags.getOpenAPI()) {
                        // Checks if the parameter name already exists
                        objParameters[name] = {
                            name,
                            in: 'path',
                            required: true,
                            schema: {
                                type: 'string'
                            }
                        };
                    } else {
                        objParameters[name] = {
                            name,
                            in: 'path',
                            required: true,
                            type: 'string'
                        }; // by deafult 'type' is 'string'
                    }

                cnt += 1;
                if (cnt > 10) {
                    // Avoiding infinite loop
                    return objParameters;
                }
            }
            return objParameters;
        } else {
            return objParameters;
        }
    } catch (err) {
        return origObjParameters;
    }
}
Recognize path parameters.
@param {string} path
@param {object} objParameters