Skip to content

Remove x-appwrite.type from OpenAPI specifications - #13484

Merged
ChiragAgg5k merged 1 commit into
mainfrom
feat/remove-openapi-method-types
Sep 5, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
feat/remove-openapi-method-types

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

What does this PR do?

Stops emitting x-appwrite.type from generated OpenAPI 3 specifications. SDK Generator now infers upload, binary response, web-authentication, and GraphQL behavior exclusively from standard OpenAPI fields.

This removes the final producer dependency on the custom method-type extension.

Depends on the merged appwrite/sdk-generator#1871.

Related to CLO-4377.

Validation

  • composer lint src/Appwrite/SDK/Specification/Format/OpenAPI3.php
  • generated latest client, server, and console OpenAPI 3 specifications
  • confirmed no generated operation contains x-appwrite.type
  • confirmed generated specifications are byte-structure equivalent after removing only x-appwrite.type from the baseline:
    • client: 152 fields removed, 17 non-empty
    • server: 563 fields removed, 20 non-empty
    • console: 621 fields removed, 21 non-empty

@greptile-apps

greptile-apps Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Removes the operation-level x-appwrite.type extension from generated OpenAPI 3 specifications.

  • Leaves the remaining Appwrite-specific operation metadata unchanged.
  • Relies on standard OpenAPI fields for downstream operation classification.
  • Does not alter runtime request handling, authorization, or data access.

Confidence Score: 5/5

The PR appears safe to merge because no remaining repository consumer requires the removed field and no concrete behavioral regression was identified.

The change only removes an obsolete generated metadata field; relevant operation semantics remain encoded in the specification, and the stated downstream generator dependency has already been merged.

Important Files Changed

Filename Overview
src/Appwrite/SDK/Specification/Format/OpenAPI3.php Removes the custom method-type metadata field while preserving standard OpenAPI representations and all other operation metadata.

Reviews (1): Last reviewed commit: "feat: remove OpenAPI method type extensi..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → feat/remove-openapi-method-types (after).

Metric Before After Change
🚀 Requests/sec 203.79 204.98 ⚪ +0.6%
⏱️ Latency P50 88.03 ms 87.74 ms ⚪ -0.3%
⏱️ Latency P95 190.21 ms 189.11 ms ⚪ -0.6%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 87.74 189.11 12,540 204.98 -1.09
Account 158.23 308.76 660 11.47 -17.8
TablesDB 88.69 155.9 6,820 113.66 -3.55
Storage 72.45 154.73 3,300 57.33 +1.41
Functions 121.23 226.41 1,760 31.2 -2.44

Top API waits (after)

API request Max wait (ms)
functions.delete 519.68
account.name.update 503.65
tablesdb.rows.create 489.94
account.get 475.97
functions.variables.update 408.95

@ChiragAgg5k
ChiragAgg5k merged commit f55f811 into main Sep 5, 2026
46 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the feat/remove-openapi-method-types branch September 5, 2026 14:38
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.

2 participants