Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 70 additions & 10 deletions specs/latest/open-api3-latest-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -7540,7 +7540,7 @@
}
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "listTransactions",
"group": "transactions",
Expand All @@ -7559,6 +7559,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-transactions.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.listTransactions"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -7605,7 +7609,7 @@
}
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "createTransaction",
"group": "transactions",
Expand All @@ -7624,6 +7628,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-transaction.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.createTransaction"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -7675,7 +7683,7 @@
}
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "getTransaction",
"group": "transactions",
Expand All @@ -7694,6 +7702,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-transaction.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.getTransaction"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -7737,7 +7749,7 @@
}
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "updateTransaction",
"group": "transactions",
Expand All @@ -7756,6 +7768,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-transaction.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.updateTransaction"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -7815,7 +7831,7 @@
"description": "No content"
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "deleteTransaction",
"group": "transactions",
Expand All @@ -7834,6 +7850,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-transaction.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.deleteTransaction"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -7879,7 +7899,7 @@
}
}
},
"deprecated": false,
"deprecated": true,
"x-appwrite": {
"method": "createOperations",
"group": "transactions",
Expand All @@ -7898,6 +7918,10 @@
"packaging": false,
"public": true,
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-operations.md",
"deprecated": {
"since": "1.8.0",
"replaceWith": "tablesDB.createOperations"
},
"auth": {
"Project": []
}
Expand Down Expand Up @@ -11654,6 +11678,16 @@
"default": ""
},
"in": "query"
},
{
"name": "resource",
"description": "RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.",
"required": false,
"schema": {
"type": "string",
"default": []
Comment on lines +11683 to +11688

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Fix resource typing

This query parameter is documented as a URI or URI list, but the schema is a string with an array default. OpenAPI clients can generate a string argument whose default value is [], and validators/code generators can reject the schema because the default does not match the declared type. If multiple RFC 8707 resources are supported, this needs an array schema with explicit query serialization; otherwise the default should be a string and the docs should describe a single resource.

Artifacts

Repro: targeted OpenAPI parameter default mismatch harness

  • Contains supporting evidence from the run (text/javascript; charset=utf-8).

Repro: validation harness output showing resource string schema with array default mismatch

  • Keeps the command output available without making the summary code-heavy.

View artifacts

T-Rex Ran code and verified through T-Rex

},
"in": "query"
}
]
}
Expand Down Expand Up @@ -11742,6 +11776,12 @@
"description": "Rich authorization request. JSON array of objects, each with a `type` and project-defined fields",
"default": "",
"x-example": "<AUTHORIZATION_DETAILS>"
},
"resource": {
"type": "string",
"description": "RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.",
"default": [],
"x-example": null
}
}
}
Expand Down Expand Up @@ -12326,6 +12366,12 @@
"default": "",
"x-example": "https:\/\/example.com",
"format": "url"
},
"resource": {
"type": "string",
"description": "RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.",
"default": [],
"x-example": null
}
},
"required": [
Expand Down Expand Up @@ -20742,6 +20788,16 @@
"profile"
]
},
"resources": {
"type": "array",
"description": "Requested RFC 8707 resource indicators the user is being asked to consent to.",
"items": {
"type": "string"
},
"x-example": [
"https:\/\/api.example.com\/"
]
},
"authorizationDetails": {
"type": "string",
"description": "Requested authorization_details the user is being asked to consent to, as a JSON string. Each entry has a `type` plus project-defined fields.",
Expand Down Expand Up @@ -20776,6 +20832,7 @@
"userId",
"appId",
"scopes",
"resources",
"authorizationDetails",
"prompt",
"redirectUri",
Expand All @@ -20793,6 +20850,9 @@
"email",
"profile"
],
"resources": [
"https:\/\/api.example.com\/"
],
"authorizationDetails": "[{\"type\":\"calendar\",\"identifier\":\"primary\",\"actions\":[\"read_events\",\"create_event\"]}]",
"prompt": "login",
"redirectUri": "https:\/\/example.com\/callback",
Expand All @@ -20817,12 +20877,12 @@
"verification_uri": {
"type": "string",
"description": "URL where the end user enters the user code.",
"x-example": "https:\/\/cloud.appwrite.io\/oauth2\/device"
"x-example": "https:\/\/cloud.appwrite.io\/console\/oauth2\/device"
},
"verification_uri_complete": {
"type": "string",
"description": "Verification URL with the user code prefilled as a query parameter.",
"x-example": "https:\/\/cloud.appwrite.io\/oauth2\/device?user_code=ABCD-EFGH"
"x-example": "https:\/\/cloud.appwrite.io\/console\/oauth2\/device?user_code=ABCD-EFGH"
},
"expires_in": {
"type": "integer",
Expand All @@ -20848,8 +20908,8 @@
"example": {
"device_code": "5f3c8d2a1b9e4f7a6c8b2d1e9f4a7b3c5d8e1f2a9b4c7d6e3f5a8b1c4d7e2f9a",
"user_code": "ABCD-EFGH",
"verification_uri": "https:\/\/cloud.appwrite.io\/oauth2\/device",
"verification_uri_complete": "https:\/\/cloud.appwrite.io\/oauth2\/device?user_code=ABCD-EFGH",
"verification_uri": "https:\/\/cloud.appwrite.io\/console\/oauth2\/device",
"verification_uri_complete": "https:\/\/cloud.appwrite.io\/console\/oauth2\/device?user_code=ABCD-EFGH",
"expires_in": 900,
"interval": 5
}
Expand Down
Loading