refactor(sdks): consume utopia-php/openapi specification models - #13217
Merged
Conversation
The generator no longer ships Appwrite\Spec; specifications are parsed by Utopia\OpenAPI\Parser and passed to SDK as canonical typed models.
Contributor
Greptile SummaryThe PR migrates SDK generation to the canonical
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (5): Last reviewed commit: "chore: use a caret constraint for sdk-ge..." | Re-trigger Greptile |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
The package is on Packagist as 0.1.0, so the VCS repository entry is no longer needed to resolve it.
…r-utopia-openapi # Conflicts: # composer.lock
loks0n
approved these changes
Aug 14, 2026
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.
Companion to appwrite/sdk-generator#1789, which removes
src/Spec/*and theAppwrite\Specautoload namespace from the generator in favour of the canonical typed models inutopia-php/openapi.src/Appwrite/Platform/Tasks/SDKs.phpis the caller that constructs those spec objects, so without this changephp app/cli.php sdksfatals on the generator branch:What's Changed
new OpenAPI3($spec)becomesParser::parse($spec).new StaticSpec(title: …, description: …, version: …, licenseName: …, licenseURL: …)becomesParser::parse([...])over an equivalent minimal OpenAPI 3 document, matching the static-spec example in the generator's README.Appwrite\Spec\OpenAPI3andAppwrite\Spec\StaticSpecimports, addedUtopia\OpenAPI\Parser.appwrite/sdk-generatorto the tagged3.0.*release. No repository entry needed:utopia-php/openapiresolves from Packagist as0.1.0.Verification
Generated every server SDK against
open-api3-1.9.x-server.jsonthroughappwrite-labs/cloud, which vendors this branch asappwrite/server-ce.