isSchemaSegmentPathVar = (segment) => {
        return segment.startsWith('{') &&
        segment.endsWith('}') &&
        // check that only one path variable is present as collection path variable can contain only one var
        segment.indexOf('}') === segment.lastIndexOf('}');
      }
@param {*} pmSuffix - Collection request's path suffix array
@param {*} schemaPath - schema operation's path suffix array
@param {object} options - a standard list of options that's globally passed around. Check options.js for more.
@returns {*} score - null of no match, int for match. higher value indicates better match
You get points for the number of URL segments that match
You are penalized for the number of schemaPath segments that you skipped