Repository navigation
fix: remove x-appwrite.produces from OpenAPI responses - #13524
Merged
Merged
Conversation
Contributor
Greptile SummaryThis PR stops emitting the nonstandard
Confidence Score: 5/5The PR appears safe to merge because the formatter behavior and its unit-test expectation now consistently omit the deprecated metadata. The previously failing test expectation has been updated to match the intended formatter output, and no new correctness, security, or repository-rule issues remain. Important Files Changed
Reviews (2): Last reviewed commit: "test: expect bodyless specs without prod..." | 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)
|
loks0n
approved these changes
Sep 8, 2026
This was referenced Sep 8, 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.
Stop emitting x-appwrite.produces
CLO-4377: https://linear.app/appwrite/issue/CLO-4377/openapi3-standards
PR 1/4. Follow-ups: [Cloud promotion — pending PR URL], [canonical specs — pending PR URL], SDK generator #1888.
Spec change
Actual Appwrite CLI output for
DELETE /sites/{siteId}/logs/{logId}(sitesDeleteLog), before → after (excerpt):"responses": { "204": { "description": "No content" } }, "x-appwrite": { - "produces": ["application/json"], ... }No response body is invented for 204. Explicit JSON, text and binary response content is unchanged. Current Appwrite main emits OpenAPI3 only; no historical Swagger2 documents or producer were rewritten.
Validation
php app/cli.php specs --version=2.0.x --mode=normal --git=noand thelatestequivalent, before and after, from the same Appwrite base.sitesDeleteLog,vcsUpdateExternalDeployments); every other parsed JSON value is identical. This is CE, not Cloud: the published Cloud document has 49 extension-bearing operations.php -landcomposer lint src/Appwrite/SDK/Specification/Format/OpenAPI3.phppass.Rollout
After merge, record the real published Appwrite merge SHA A. Cloud must promote its server-ce lock to A (or a reviewed descendant), then regenerate canonical specs with Cloud overrides. Generator release waits for publication. Rust downstream changes are an intentional breaking correction and are documented in PR 4.
Captured validation output
Actual command-output excerpts rendered locally and captured with Chromium. These are test-log screenshots, not live browser UI/e2e screenshots. Local configuration paths are excluded by selecting the public stdout excerpt; result text is unchanged.
Revalidated after rebasing onto Appwrite main
5070d71d6cdf7b7c1c2d5796949480a17a238a66; prepared commit0f40cfa24cbdd084c3371c6c5a14f00ecaecce8a. Both 2.0.x/latest before/after pairs still differ only by the two extension deletions and validate cleanly.