import{parseYaml as a}from"@redocly/openapi-core";import{isVirtualFile as i}from"../../../fs/utils/isVirtualFile.js";const s=async(r,{fs:t})=>{try{const e=await t.read(r);return a(e)}catch(e){if(await i(r,t))return;throw new Error(`Error parsing YAML file ${r}: ${e.message}`)}};export{s as yamlParser};
