We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc074d commit 8155836Copy full SHA for 8155836
src/openapi/update-vendored-yaml.ts
@@ -31,9 +31,8 @@ async function updateVendoredYaml() {
31
32
for (const spec of openApiSpecsArray) {
33
if (!spec.url) continue; // Only process specs with a URL
34
- // Remove leading './' for specPath if present, and resolve relative to this script
35
- const specPath = spec.specPath.replace(/^\.\//, '../../');
36
- const absPath = path.resolve(__dirname, specPath);
+ // absPaths is the absolute path to the spec file
+ const absPath = spec.specPath;
37
fs.mkdirSync(path.dirname(absPath), { recursive: true });
38
console.log(`⬇️ Downloading ${spec.url} → ${absPath}`);
39
try {
0 commit comments