-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
bugSomething isn't workingSomething isn't workingproduct / cloudIssues found only on Appwrite CloudIssues found only on Appwrite Cloudproduct / functionsFixes and upgrades for the Appwrite Functions.Fixes and upgrades for the Appwrite Functions.
Description
👟 Reproduction steps
The following python code
def main(req, res):
return res.json({
"rows": [],
"total": 0,
"filterData": {},
"pagination": {
"limit": 10,
"offset": 0,
},
"sortModel": [],
"chips": {},
"search": "",
"payload": {},
})should return these JSON structure
{
"rows": [],
"total": 0,
"filterData": {},
"pagination": {
"limit": 10,
"offset": 0
},
"sortModel": [],
"chips": {},
"search": "",
"payload": {}
}👍 Expected behavior
It returns
{
"rows": [],
"total": 0,
"filterData": {},
"pagination": {
"limit": 10,
"offset": 0
},
"sortModel": [],
"chips": {},
"search": "",
"payload": {}
}👎 Actual Behavior
But every dict without any properties was serialized as a list
{
"chips": [],
"filterData": [],
"pagination": { "limit": 10, "offset": 0 },
"payload": [],
"rows": [],
"search": "",
"sortModel": [],
"total": 0
}Proof
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Linux
🧱 Your Environment
Appwrite Cloud 1.1.2
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
ArafatikArafatik
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingproduct / cloudIssues found only on Appwrite CloudIssues found only on Appwrite Cloudproduct / functionsFixes and upgrades for the Appwrite Functions.Fixes and upgrades for the Appwrite Functions.
