appwrite/src/Appwrite/Network
Damodar Lohani 196c76ac70 fix: map deprecated platform types in read endpoints for backwards compatibility
Old platform types stored in the database (e.g. flutter-web, apple-ios,
react-native-android) are now mapped to the new consolidated types (web,
apple, android, windows, linux) before being sent in API responses. This
ensures the response models' $conditions correctly select the right model
for each platform document.

Adds Platform::mapDeprecatedType() as a reusable static method and applies
the mapping in both Get and XList platform endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 07:47:42 +00:00
..
Validator Merge pull request #11533 from appwrite/feat-user-impersonation 2026-03-20 16:13:51 +01:00
Cors.php fix: preserve cors max age type 2026-04-02 08:25:59 +05:30
Platform.php fix: map deprecated platform types in read endpoints for backwards compatibility 2026-04-09 07:47:42 +00:00