Skip to content

Fix the API reference build after the Postman submodule bump - #97

Merged
roncodes merged 1 commit into
mainfrom
fix/php-sdk-examples-fleet-contract
Sep 7, 2026
Merged

Fix the API reference build after the Postman submodule bump#97
roncodes merged 1 commit into
mainfrom
fix/php-sdk-examples-fleet-contract

Conversation

@roncodes

@roncodes roncodes commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the API-reference build, which currently fails on main.

The Bump Postman Submodule dispatch (run 34012387765) moved vendor/postman to the merged collection from fleetbase/postman#59, which added 21 requests. scripts/php-sdk-examples.generated.json was still the 220-request catalog generated at 9a7d4d8, so generate-api-docs.mjs threw on the first request it could not map:

No PHP SDK example is mapped for fleetbase-api-drivers-create-an-operational-driver.

Regenerated the catalog from fleetbase/fleetbase-php at the matching Postman ref, and bumped the submodule to 9b59bef.

What changed

Only two files — the generated .mdx pages and api-nav.generated.ts are build outputs and are not tracked.

  • scripts/php-sdk-examples.generated.json — 220 → 241 examples, generated_from.ref now 9b59bef
  • vendor/postman9a7d4d89b59bef

Both directions of the coverage check now pass: every request has an example, and no catalog entry is unused.

The scenario requests among the 21 map to the method they actually exercise rather than to a bespoke one, so Create an Order with Empty Relationships documents createOrder, and Expand a Vehicle documents retrieveVehicle with its with parameter.

Validation

node scripts/generate-api-docs.mjs   → ✅ API docs generated.
npm test                             → 4 passed, 0 failed

Ran the postinstall pair (fumadocs-mdx && node scripts/generate-api-docs.mjs) exactly as CI does; it exits 0. Spot-checked the endpoint that broke the build — Create an Operational Driver renders on drivers.mdx with its PHP sample — and confirmed the fleet membership endpoints render on fleets.mdx.

Ordering

Depends on fleetbase/fleetbase-php#10, which adds the four fleet membership methods this catalog documents. That PR is the source of this file, so land it first — otherwise the reference documents methods that no published SDK version has.

The Bump Postman Submodule dispatch moved vendor/postman to the merged
collection, which added 21 requests. The catalog was still the 220-request one
generated at 9a7d4d8, so generate-api-docs.mjs threw on the first request it
could not map:

    No PHP SDK example is mapped for
    fleetbase-api-drivers-create-an-operational-driver.

Regenerated from fleetbase/fleetbase-php at the matching Postman ref. The
catalog now covers all 241 requests, so both directions of the coverage check
pass: every request has an example, and no catalog entry goes unused.

The scenario requests among the 21 resolve to the method they actually
exercise rather than to one of their own, so `Create an Order with Empty
Relationships` documents createOrder and `Expand a Vehicle` documents
retrieveVehicle with its `with` parameter.

The four genuinely new fleet membership endpoints need fleetbase-php 1.2.0,
which is in review; this catalog is generated from that branch. Land the SDK
release first so the documented methods exist in a published version.
@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
fleetbase-io Ready Ready Preview Sep 7, 2026 2:05am UTC

Request Review

@roncodes
roncodes merged commit ae43a1d into main Sep 7, 2026
2 checks passed
@roncodes
roncodes deleted the fix/php-sdk-examples-fleet-contract branch September 7, 2026 03:01
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