Skip to content

feat(import): discover OpenAPI specs beyond llms.txt json links - #42

Merged
minhthanhdang merged 2 commits into
mainfrom
minh/rm-18014-improve-oas-discovery-for-the-docs-importer
Aug 24, 2026
Merged

feat(import): discover OpenAPI specs beyond llms.txt json links#42
minhthanhdang merged 2 commits into
mainfrom
minh/rm-18014-improve-oas-discovery-for-the-docs-importer

Conversation

@minhthanhdang

Copy link
Copy Markdown
Contributor
🚥 Resolves RM-18014

🧰 Changes

Today a spec is only found when llms.txt happens to link a .json file. This PR adds four more discovery paths, so most real docs sites get their API reference automatically:

  • probe well-known spec paths on the source origins (/openapi.json, /swagger.json, /v3/api-docs, …)
  • read openapi fields from Mintlify docs.json / mint.json
  • scan already-fetched pages for specs embedded by Swagger UI / Redoc / Scalar / Stoplight
  • capture spec URLs from sitemap.xml and scraped links instead of discarding them (sitemap specs no longer become a fake "Openapi" guide page)

.yaml/.yml specs now ride through end to end, and HTML bodies are never staged as specs. Candidates are deduped, ranked by source confidence, and capped at 10 per source.

🧬 QA & Testing

…-oas-discovery-for-the-docs-importer

# Conflicts:
#	src/commands/import.js

@xavierandueza xavierandueza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@minhthanhdang
minhthanhdang merged commit 65ccd6e into main Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants