code: async function parseDocument(rawData) {
    try {
      const api = utils.unthrowableParseJson(rawData) || SwaggerParser.YAML.parse(rawData);
      if (!api) {
        return null;
      }
  
      // Await here so we catch any exceptions
      return await SwaggerParser.validate(api);
    } catch (err) {
      return null;
    }
  }
docs: Parse string data into openapi 3 object (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#oasObject)
  
  @param {string} rawData
  
  @returns {Object|null} OpenAPI 3 object