Skip to content

fix(api): publish generated scope and webhook reference corrections - #363

Merged
SohamRatnaparkhi merged 2 commits into
mainfrom
fix/generated-openapi-alias-examples
Nov 16, 2026
Merged

SohamRatnaparkhi merged 2 commits into
mainfrom
fix/generated-openapi-alias-examples

Conversation

@SohamRatnaparkhi

@SohamRatnaparkhi SohamRatnaparkhi commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Publish the application-generated reference fixes for QA-060 and QA-062, alongside this PR’s existing scope-alias corrections. Webhook registration/get examples use an example receiver rather than a deleted docs page. Webhook indexing outcomes and delivery states have separate descriptions and valid examples.

The file is byte-for-byte identical to application/docs/openapi.docs.json on application main at 3c4bbda6a7de741fdbb089b79199623e7b69684a, merged through hydra-db/hydradb-application#3667. It was produced by just openapi; no manual OpenAPI edits were made.

Validation: the public V2 contract, schema-type tests, 11 consistency tests, endpoint references and generated-index checks pass. Greptile and Mira reviewed the current head at 5/5. The full 43-test suite still has 12 failures, reproduced identically on docs main, from existing app_knowledge/acl_inherit narrative and examples. Those failures remain blockers. This task does not merge docs PRs.

Signed-off-by: SohamRatnaparkhi <soham.ratnaparkhi@gmail.com>
@mintlify

mintlify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cortex-ai 🟢 Ready View Preview Nov 15, 2026, 6:38 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

Copy link
Copy Markdown

✅ Mintlify Hygiene

No issues found.

@SohamRatnaparkhi

Copy link
Copy Markdown
Contributor Author

@greptileai review

@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes introduce no identified merge-blocking defect; publication still depends on the prerequisites recorded in the PR description.

Summary

Updates the generated OpenAPI reference:

  • Deprecated scope examples use names that match databases and collections.
  • Table-query examples show SQL types and a clear failure result.
  • Webhook examples distinguish indexing results from delivery states.

No new actionable issues were found. This review does not authorize publication or replace the prerequisites recorded in the PR description. No tests or live API checks were run.

Reviews (2) · Last reviewed commit: "fix(api): sync generated webhook example..." · Reviewed by Greptile

Signed-off-by: SohamRatnaparkhi <soham.ratnaparkhi@gmail.com>
@openhack-agent

Copy link
Copy Markdown

✅ OpenHack Summary

Security review of fix(api): regenerate matching scope alias examples. 1 changed file; 0 findings at or above the low reporting threshold.

P1: Critical 0   P2: High 0   P3: Medium 0   P4: Low 0

Confidence Score: 5/5

No reportable security findings were detected in this scan.

Security merge-readiness rubric: 1 = critical, 2 = high, 3 = medium, 4 = low, 5 = no reportable findings. This score reflects scan findings, not a guarantee of correctness or complete coverage.

Files Needing Attention: None

Important Files Changed
  • api-reference/v2/openapi.json (modified)

Last reviewed commit: 5f30497 · View review on OpenHack


TIP: Mention @openhack-agent in a PR comment to request a review or ask a question. Use @openhack-agent fix all for every finding, or @openhack-agent fix unresolved threads for open review threads only.

@openhack-agent openhack-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OpenHack reviewed this commit. See the OpenHack Summary for the confidence score and fix actions.

@SohamRatnaparkhi SohamRatnaparkhi changed the title fix(api): regenerate matching scope alias examples fix(api): publish generated scope and webhook reference corrections Nov 15, 2026
@SohamRatnaparkhi

Copy link
Copy Markdown
Contributor Author

@greptileai review

Please review current head 5f304973bc1fa6cc3f2e48945d49cf23f8af4fb1. QA-060/QA-062 coverage and source-generation validation are described in the updated PR body; existing baseline docs failures remain explicitly recorded.

@hydra-mira-review

hydra-mira-review Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Mira score 5/5 · 🟢 Good to merge

  • No findings in the code.
  • Confirm outside this PR: Land the application generator hotfix before publishing the reference.
  • Finish the requirement: Describe webhook indexing outcomes separately from delivery states an…

The API reference gains corrected scope and alias details, webhook receiver examples, and separate descriptions for indexing outcomes and delivery states. This PR publishes the generated application reference without manual OpenAPI edits.

Before this ships · 1 to confirm
  • ❔ Land the application generator hotfix before publishing the reference (order), needed in hydra-db/hydradb-application, PR #3667. The description names application PR #3667 as the prerequisite; its merge status and final generated artifact are not established. Land https://github.com/hydra-db/hydradb-application/pull/3667 before publication and confirm the published snapshot matches its generated artifact.
How this PR works · 4 changes, 4 low risk

The published API reference shows misleading scope aliases, webhook receivers, and webhook states. This PR updates the generated snapshot to correct those examples and descriptions. The description requires application PR #3667 to land before publication and keeps the existing validation failures as merge blockers.

1. Show scope aliases with the same values as their replacements · 🟢 low risk · api-reference/v2/openapi.json

Deprecated scope examples now match database and collection names instead of suggesting separate identifiers. Examples use acme_corp and team_docs, including corresponding lists, while webhook delivery records retain their documented internal database ID.

Risk: Incorrect scope examples could lead API users to send the wrong database or collection value and receive scope errors.

Check:

  • Compare scalar and list aliases with their replacement fields, preserving the internal tenant_id example on webhook delivery records.

In openapi.json:297-3127, openapi.json:3672-6957, openapi.json:7616-8519 and 1 more.

2. Separate indexing outcomes from webhook delivery states · 🟢 low risk · api-reference/v2/openapi.json

Readers can distinguish successful indexing from successful webhook delivery. indexing_status now describes terminal indexing outcomes, while status describes delivery states and uses delivered instead of completed.

Risk: Incorrect state descriptions could cause integrations to misclassify delivery success or retry the wrong records.

Check:

  • Confirm the application uses every documented indexing outcome and delivery state.
  • Keep delivery-history status distinct from the indexing status sent in webhook payloads.

In openapi.json:2683-2689, openapi.json:2753-2759, openapi.json:8604-8612 and 1 more.

3. Use an example receiver for webhook registration · 🟢 low risk · api-reference/v2/openapi.json

Webhook examples now point to an example receiver instead of the deleted documentation page. Registration requests and registration/get responses use https://example.com/webhooks/hydradb.

Risk: A misleading receiver example could lead users to register a destination that cannot handle their webhook events.

Check:

  • Check that registration and get examples consistently show https://example.com/webhooks/hydradb.

In openapi.json:2981-2985, openapi.json:3041-3045, openapi.json:8776-8782 and 2 more.

4. Clarify table query types, failures, and absent results · 🟢 low risk · api-reference/v2/openapi.json

Table query examples now show a SQL type and an actual failure explanation. BIGINT replaces knowledge, errors include TABLE_EXECUTION_FAILED, and the null result title becomes No table query result.

Risk: Incorrect table query examples could cause API users to misinterpret column types, failures, or absent results.

Check:

  • Confirm the application emits the illustrated SQL type and error code, and that the broader null title matches response behavior.

In openapi.json:7150-7153, openapi.json:7226-7250, openapi.json:7320-7334 and 1 more.

Not explained by the ticket or the description:

  • Table query SQL type examples, failure examples, and the null result title change without an explanation in the PR description.
Requirement check · 2 met, 1 partly met, 1 unclear · from the PR description
  • ✅ Correct deprecated scope alias examples (met). Deprecated scalar and list examples in api-reference/v2/openapi.json now use database and collection names matching their replacement fields.
  • ✅ Replace the deleted documentation URL in webhook registration and get examples with an example receiver (met). webhooks.WebhookRegisterRequest, webhooks.WebhookRegisterResponse, and webhooks.WebhookGetResponse use https://example.com/webhooks/hydradb; operation response examples match.
  • 🟡 Describe webhook indexing outcomes separately from delivery states and provide valid examples (partial). webhooks.DeliveryItem separates both descriptions and illustrates completed with delivered; agreement with application state values is not established.
  • ❔ Publish an unedited generated copy from application commit 4192f1408efb357027bf93a799f6793f2c9d2125 (unclear). The changed artifact is api-reference/v2/openapi.json; byte identity with application/docs/openapi.docs.json and generation through just openapi are not established.
Check by hand · 2
  • Confirm application PR #3667 has landed and api-reference/v2/openapi.json exactly matches its declared generated artifact before publication.
  • Confirm the 12 existing full-suite failures described in the PR are resolved before any documentation merge.
⚠️ Other open PRs change the same code · 2

Merge them in order, or check that they agree.

  • #356 (duplicate effort + merge-conflict risk). Both PRs publish generated replacements of the same OpenAPI contract from different application commits, duplicating publication work and risking overwritten corrections. Shared: api-reference/v2/openapi.json
  • #365 (merge-conflict risk). Syncing the generated OpenAPI contract can overwrite the scope, alias, and webhook corrections published by fix(api): publish generated scope and webhook reference corrections #363. Shared: api-reference/v2/openapi.json

Comment @hydra-mira-review help for commands.

@SohamRatnaparkhi
SohamRatnaparkhi merged commit 0017be2 into main Nov 16, 2026
8 of 9 checks passed
@SohamRatnaparkhi
SohamRatnaparkhi deleted the fix/generated-openapi-alias-examples branch November 16, 2026 04:04

This branch was successfully deployed

1 active deployment
staging — 5f304973 Deployed Nov 15, 2026 by mintlify[bot]
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.

1 participant