fern icon indicating copy to clipboard operation
fern copied to clipboard

fix(docs): include navigation breadcrumbs in yml errors

Open shubhamsinnh opened this issue 6 months ago • 2 comments

Summary

  • append readable navigation breadcrumbs to docs config schema validation errors
  • apply breadcrumbs to docs.yml, versions.yml, and products.yml validation paths
  • add regression coverage for nested tab/section/page navigation errors

Fixes #10693

Testing

  • D:\first-project\fern\node_modules\.bin\vitest.cmd --run src/__test__/formatNavigationConfigError.test.ts from packages/cli/yaml/docs-validator
  • git diff --check

Notes

  • I also tried npx -p [email protected] -p [email protected] pnpm --filter @fern-api/docs-validator compile, but this sparse checkout fails on unresolved local workspace package type outputs, so it was not a clean validation signal.

shubhamsinnh avatar May 23 '26 00:05 shubhamsinnh

Hi! This PR is ready for review.

Most checks are passing now (compile, biome, lint, test, depcheck, boundaries, version validation, and seed result checks). The remaining test-ete failure appears to be due to Fern auth secrets not being available on this fork PR: the logs show Authentication required / missing FERN_TOKEN.

Please let me know if there is anything else I should update.

shubhamsinnh avatar May 23 '26 08:05 shubhamsinnh

Hi @amckinney, just wanted to follow up on this when you get a chance.

This is for #10693, where docs config validation errors point to array indexes like $.navigation[5].layout[1], which makes the actual page/section hard to find in larger docs.yml files. I updated the formatter to include readable navigation breadcrumbs, and also addressed the root-level title case Devin flagged.

Would appreciate your review on whether this is the right place and shape for the fix. Happy to adjust if there’s a cleaner pattern you’d prefer.

shubhamsinnh avatar May 25 '26 03:05 shubhamsinnh

This PR is stale because it has been open 25 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 22 '26 02:06 github-actions[bot]

This PR was closed because it has been inactive for 5 days after being marked stale.

github-actions[bot] avatar Jun 28 '26 02:06 github-actions[bot]