Repository navigation
docs: improve generated SDK request examples - #13909
Merged
Merged
Conversation
Contributor
|
levivannoort
approved these changes
Sep 25, 2026
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
This was referenced Sep 25, 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.
Summary
Add request examples at their Appwrite source definitions so generated API specs and SDK documentation have useful inputs instead of empty arrays or generic placeholders.
This follows the example audit prompted by appwrite/sdk-for-cli#366. This PR is the upstream metadata portion; CLI flag naming, repeated-flag rendering, download destinations and optional-parameter selection belong in a separate sdk-generator PR.
Changes
Only example metadata changes. Request validation, defaults, required parameters, permissions and handlers are unchanged. Generated spec JSON is regenerated for verification, not hand-edited or committed. Cloud-only definitions absent from this repository are outside this PR. No test files are added or changed.
Verification
Ran PHP commands in isolated
appwrite/appwrite:2.3.0containers with the worktree mounted at/usr/src/codeand--network none.php vendor/bin/phpunit tests/unit/SDK/Specification/FormatTest.php— 43 tests, 253 assertions passed, rerun after removing the added test.php app/cli.php specs --version=latest --mode=normal --git=no, with_APP_SDK_PREVIEW=disabledand again withenabled— both passed; generated canonical, client, server and console documents each time.examplevalues differ. Canonical normal spec: 41 changed examples; canonical preview spec: 42.vendor/bin/pint --test --config pint.json <changed PHP files>— passed.php vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=1G <changed PHP files>— passed; the checked set included all 40 remaining changed files.git diff --check— passed.Spec generation was exercised end-to-end through the real CLI task. Full service E2E suites, live API mutations and downstream SDK example rendering were not run; downstream rendering fixes remain separate. No UI screenshots apply to this metadata-only change.