Skip to content

Add strict api: schema with product, repository, and children - #3804

Open
reakaleek wants to merge 2 commits into
mainfrom
issue-718-api-schema
Open

Add strict api: schema with product, repository, and children#3804
reakaleek wants to merge 2 commits into
mainfrom
issue-718-api-schema

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Why

Multi-version API docs need the api: key decoupled from product id, bound to products.yml via product:, and able to reference specs published from a different repo than the docset checkout. The #711 pipeline ships a global root index.json keyed by org/repo and spec basename — the config layer must expose that before #719 can fetch specs remotely.

What

  • Replaces legacy api: shapes (string, object, intro/outro sequence) with a single-entry sequence requiring spec: and product:, plus optional repository: and children:.
  • Validates product: against products.yml; resolves children: under api/<key>/ and prepends them in ApiExplorer navigation.
  • Migrates docs/_docset.yml (breaking) and author docs for the new schema.
  • Skips APIs with no local spec file until the stacked AOT compile assembler #719 PR adds remote resolution.

Closes elastic/docs-eng-team#718

Test plan

  • dotnet test tests/Elastic.Documentation.Configuration.Tests/
  • dotnet test tests/Elastic.ApiExplorer.Tests/ (nav/reader)
  • dotnet build

Made with Cursor

reakaleek and others added 2 commits August 6, 2026 21:55
Replace legacy api: shapes with a single-entry sequence requiring
product: and spec:, optional repository: for cross-repo index lookup,
and children: under api/<key>/. Migrate docs/_docset.yml and wire
children into ApiExplorer navigation. Skip APIs without a local spec
until remote version-index resolution lands in #719.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant