Repository navigation
Conversation
…reference - Merge the merchant service spec into the generated Core spec, keeping only routes the API gateway forwards (merchants, refunds, GET payments) - Preserve each operation's own security, since only the first spec's top-level security survives the merge - Skip tags from the filtered merchant spec and fail on duplicate method/path pairs across specs - Regenerate specs for 2026-02-18 and 2026-02-19.preview with new pages and Refunds and Merchants sidebar groups - Exempt generated API Reference pages from the reviewer rule in AGENTS.md
Contributor
|
Preview: https://pr-183-walletconnect-docs.walletconnect-v1-bridge.workers.dev (commit f1324cb) |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
https://api.pay.walletconnect.com).scripts/generate-specs.mjsskipped the merchant service (api.merchant.pay.walletconnect.com) on purpose./v1/merchantsand/v1/refundswere missing from the docs, even though integrators can call them.https://api.pay.walletconnect.com. The API gateway forwards some routes to the merchant API, so there's no need to block the merchant spec, only to filter it down to what the gateway forwards.How the endpoints appear in the merchant spec
api.merchant.pay.walletconnect.com/spec/<version>/openapi.json) lists these routes, which are forwarded and now documented:GET /v1/paymentsPOST /v1/refundsGET /v1/merchants/paymentsPOST /v1/merchants/payments/{paymentId}/receiptGET/POST /v1/merchantsGET/PATCH/DELETE /v1/merchants/{merchantId}GET /v1/merchants/{merchantId}/settlementsand/settlements/tokensPOST /v1/merchants/{merchantId}/settlements/crypto, plusPUT/DELETE /v1/merchants/{merchantId}/settlements/crypto/{id}POST /v1/merchants/{merchantId}/settlements/fiat, plusPATCH/DELETE /v1/merchants/{merchantId}/settlements/fiat/{id}/v1/sign/{token}/*/v1/payouts*,/v1/payout-accountsand/v1/screenings(preview only)apiKeyscheme (Api-Keyheader).How we show them
https://api.pay.walletconnect.com. The merchant host never appears in the docs.GET /v1/paymentssits in the existing Payments group, next to Core'sPOST /v1/payments.2026-02-18,2026-02-19.preview) goes from 16 to 33 pages.Changes
scripts/generate-specs.mjs: fetch the merchant spec and keep only the forwarded routes, using anisForwardedfilter per service.scripts/generate-specs.mjs: copy each spec's top-level security onto its operations, because only the first spec's top-level security survives the merge.scripts/generate-specs.mjs: drop tags used only by excluded routes.scripts/generate-specs.mjs: fail if the same method and path appear in more than one spec, instead of letting the last one silently win.openapi/*.json, the API reference pages undercontent/docs/payments/api-reference/<version>/and the API Reference tab incontent/navigation.jsonwithpnpm generate.AGENTS.md: API Reference pages generated bypnpm generateno longer needrtomasandJem-reownas reviewers.pnpm buildandpnpm lintpass.