Skip to content

Fix Postman bumps and document the Trailers PHP SDK - #98

Merged
roncodes merged 1 commit into
mainfrom
feature/trailers-sdk-postman-sync
Sep 10, 2026
Merged

roncodes merged 1 commit into
mainfrom
feature/trailers-sdk-postman-sync

Conversation

@roncodes

@roncodes roncodes commented Sep 9, 2026

Copy link
Copy Markdown
Member

Problem and fix

The Postman bump workflow failed during dependency installation because postinstall generates API documentation against an older PHP SDK catalog: No PHP SDK example is mapped for fleetbase-api-equipment-attach-equipment.

Update Postman to 7fe06b7c5e415a9aa292869e9037910896b049ad and vendor the matching 264-request catalog from SDK 1.3.0 PR #11. The API reference now renders all Trailers and Equipment attachment examples with the correct SDK services and positional/direct-data arguments.

Future submodule bumps check out the PHP SDK's reviewed main branch, validate the exact Postman request-ID set, and synchronize its catalog before postinstall. Invalid, incomplete, or stale catalogs fail with an actionable error before replacing the checked-in file. A daily retry allows updates waiting for SDK support to recover after that SDK change merges. Concurrent runs are serialized, and automated PRs stage only the submodule and generated catalog.

A new PR workflow checks catalog completeness, tests the emitters and synchronizer, and regenerates the docs. The full 264-request coverage check remains enforced.

Validation

  • node scripts/sync-php-sdk-examples.mjs: 264/264 request IDs.
  • node --test scripts/sdk-emitters.test.mjs scripts/sync-php-sdk-examples.test.mjs: seven tests pass, including correct service ownership for trailer/device/equipment actions and preservation of the existing file when an incomplete candidate is supplied.
  • pnpm install --frozen-lockfile: passes, including postinstall and complete API documentation generation. The previously failing step now succeeds with the new submodule and catalog.
  • pnpm build: compiles successfully; local page-data generation stops because the isolated checkout lacks the blog's GHOST_API_URL.
  • API documentation contract CI run 34341203876: all steps passed on 19d87420e6a9fad072ebaa4ee4551d312b4b1a6b, including complete catalog validation, frozen dependency installation/postinstall, tests and regeneration.
  • Vercel preview: production deployment completed successfully on the same commit.
  • Coordinated SDK commit 86be1e719e6d5c0bd8b8f266200f2de2da26fac2 passes all SDK CI and the disposable Fleetbase contract: 264/264 expected SDK request IDs, zero failed Postman requests, 100% line/branch coverage and 88.18% mutation score.

Merge the SDK release PR first so the bump workflow can obtain the matching catalog from SDK main. Then merge this website PR and rerun Bump Postman Submodule, or allow the scheduled retry.

@vercel

vercel Bot commented Sep 9, 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 9, 2026 10:39am UTC

Request Review

@roncodes
roncodes merged commit 4d05b2f into main Sep 10, 2026
3 checks passed
@roncodes
roncodes deleted the feature/trailers-sdk-postman-sync branch September 10, 2026 03:05
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