Skip to content

feat: regenerate client from corrected OpenAPI spec#12

Merged
mekilis merged 2 commits into
mainfrom
sdk-regen-spec-fixes
Jul 20, 2026
Merged

feat: regenerate client from corrected OpenAPI spec#12
mekilis merged 2 commits into
mainfrom
sdk-regen-spec-fixes

Conversation

@mekilis

@mekilis mekilis commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Regenerates the PHP client from the corrected Convoy OpenAPI spec produced by fix(docs): OpenAPI spec fidelity for generated SDK clients convoy#2742 (nullable object/map handling, bearer auth security scheme, JSON-only onboard, portal link endpoints_metadata nullability).
  • Adds a yq pre-processing step to scripts/generate.sh that unwraps items: {allOf: [{$ref}], nullable: true} to items: {$ref} before generation, working around the PHP generator mangling the wrapper into a namespace-less class reference in DatastorePortalLinkResponse.
  • Updates the contract test and README to setAccessToken bearer auth.

Test plan

  • Local suite: 34/34 passing
  • Wide smoke against the QA harness passed

Note

Medium Risk
Large generated-client refresh touches auth headers and nullable deserialization across the SDK; integrators must switch from API-key helpers to setAccessToken, but behavior matches the updated spec and tests reportedly pass.

Overview
Regenerates the PHP client from Convoy’s updated OpenAPI spec and documents the new auth pattern: callers use Configuration::setAccessToken() (the client adds the Bearer prefix) instead of manual Authorization API-key setup.

Generation pipeline: scripts/generate.sh now runs yq before OpenAPI Generator to unwrap items: {allOf: [{$ref}], nullable: true} into a plain $ref, avoiding broken PHP class names for portal-link endpoints_metadata. SDK generation CI installs a pinned, checksum-verified yq v4.44.3.

Generated API surface: All API clients send Authorization: Bearer … via getAccessToken(). OnboardApi::bulkOnboard takes ModelsBulkOnboardRequest with application/json instead of a raw SplFileObject / octet-stream body.

Models: Widespread alignment with the spec—nullable fields accept JSON null (setters track openAPINullablesSetToNull instead of throwing), enums gain an empty-string variant where needed, and error data is typed as array<string,mixed> rather than a generic object.

Reviewed by Cursor Bugbot for commit 3980dce. Bugbot is set up for automated code reviews on this repo. Configure here.

mekilis added 2 commits July 20, 2026 11:36
regenerated the php client from the spec produced by frain-dev/convoy#2742,
which fixes nullable object/map handling, the bearer auth security scheme,
json-only onboard, and portal link endpoints_metadata nullability.

adds a yq pre-processing step to scripts/generate.sh that unwraps
items: {allOf: [{$ref}], nullable: true} to items: {$ref} before generation,
working around the php generator mangling the wrapper into a namespace-less
class reference in DatastorePortalLinkResponse. contract test and README
updated to setAccessToken bearer auth.
scripts/generate.sh rewrites the spec with yq before running the
generator; the workflow only set up java and php, so regeneration
depended on the runner image shipping yq. install v4.44.3 explicitly
and verify its sha256 before use.
@mekilis
mekilis merged commit c032a49 into main Jul 20, 2026
3 checks passed
@mekilis
mekilis deleted the sdk-regen-spec-fixes branch July 20, 2026 13:02
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