fix: enable strict mode for Appwrite migration resource WhiteList

This commit is contained in:
Prem Palanisamy
2026-02-24 22:44:57 +00:00
parent 9745df4d37
commit dc441c3973
+2 -2
View File
@@ -62,7 +62,7 @@ Http::post('/v1/migrations/appwrite')
)
]
))
->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate')
->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources(), true)), 'List of resources to migrate')
->param('endpoint', '', new URL(), 'Source Appwrite endpoint')
->param('projectId', '', fn (Database $dbForProject) => new UID($dbForProject->getAdapter()->getMaxUIDLength()), 'Source Project ID', false, ['dbForProject'])
->param('apiKey', '', new Text(512), 'Source API Key')
@@ -708,7 +708,7 @@ Http::get('/v1/migrations/appwrite/report')
)
]
))
->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate')
->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources(), true)), 'List of resources to migrate')
->param('endpoint', '', new URL(), "Source's Appwrite Endpoint")
->param('projectID', '', new Text(512), "Source's Project ID")
->param('key', '', new Text(512), "Source's API Key")