You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken server-side serialization on serverOnly models #4427
I use a wrapper model to serialize the list of another class, since upgrading to serverpod v3 I get (only when serverOnly=true):
ERROR: No deserialization found for type List<Article>
#0 SerializationManager.deserialize (package:serverpod_serialization/src/serialization.dart:108:5)
#1 Protocol.deserialize (package:app_server/src/generated/protocol.dart:1383:18)
#2 new ArticleList.fromJson (package:app_server/src/generated/article/article_list.dart:32:31)
#3 Service.fetchArticlesForCategory (package:app_server/src/services/service.dart:49:32)
import 'package:app_server/src/generated/protocol.dart';
final protocol = Protocol();
final articles = protocol.decode<ArticleList>(json);
Expected behavior
I expected serverOnly to prevent the client from serializing the model, while server-side serialization should always work, regardless of whether serverOnly is true or false.
Library version
Serverpod version: 3.0.1
Dart SDK version: 3.10.1 (stable)
Flutter 3.38.3 (stable)
Platform information
OS: Arch Linux
Kernel: 6.17.9-arch1-1
Architecture: x86_64
Additional context
No response
How experienced are you with this library?
Intermediate - Familiar with the basics or have used it in a few projects
Activity