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
parent
cf38b05f53
commit
de948dd4cc
|
|
@ -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`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue