function extractYamlFromJsDoc(jsDocComment) {
  const yamlParts = [];

  for (const tag of jsDocComment.tags) {
    if (tag.title === 'swagger' || tag.title === 'openapi') {
      yamlParts.push(tag.description);
    }
  }

  return yamlParts;
}
Extracts the YAML description from JSDoc comments with `@swagger`/`@openapi` annotation.
@param {object} jsDocComment - Single item of JSDoc comments from doctrine.parse
@returns {array} YAML parts