fix(api-docs): use actual spec path in post-processor log labels

Replace invented {productDir}/{apiKey} labels with the real spec
path (e.g., influxdb/v1/influxdb-oss-v1-openapi.yaml instead of
influxdb/v1/v1@1).
fix/issue-6939
Jason Stirnaman 2026-03-13 17:38:11 -05:00
parent cf38b05f53
commit de948dd4cc
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ function processProduct(apiDocsRoot: string, productDir: string): void {
const specRelPath = apiEntry.root;
const specAbsPath = path.join(productAbsDir, specRelPath);
const specDir = path.join(productAbsDir, path.dirname(specRelPath));
const label = `${productDir}/${apiKey}`;
const label = path.join(productDir, specRelPath);
if (!fs.existsSync(specAbsPath)) {
log(`${label}: spec not found at ${specAbsPath} — skipping`);