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
Expected behavior
Compilation to succeed. Instead, I get (this was from a slightly larger repro, hence why there are some branches mentioned in the error that aren't in the above example):
packages/stratos/message.freezed.dart:12:18:
Error: Getter not found: 'stratosMessageType'.
switch (json['$stratosMessageType'] as String) {
^^^^^^^^^^^^^^^^^^
packages/stratos/message.freezed.dart:228:12:
Error: The getter 'stratosMessageType' isn't defined for the class '_$LatestCaptures'.
- '_$LatestCaptures' is from 'package:stratos/message.dart' ('packages/stratos/message.dart').
..['$stratosMessageType'] = 'latestCaptures';
^^^^^^^^^^^^^^^^^^
packages/stratos/message.freezed.dart:362:44:
Error: The getter 'stratosMessageType' isn't defined for the class '_$RequestSync'.
- '_$RequestSync' is from 'package:stratos/message.dart' ('packages/stratos/message.dart').
return _$_$RequestSyncToJson(this)..['$stratosMessageType'] = 'requestSync';
^^^^^^^^^^^^^^^^^^
packages/stratos/message.freezed.dart:476:12:
Error: The getter 'stratosMessageType' isn't defined for the class '_$RequestSyncAll'.
- '_$RequestSyncAll' is from 'package:stratos/message.dart' ('packages/stratos/message.dart').
..['$stratosMessageType'] = 'requestSyncAll';
^^^^^^^^^^^^^^^^^^
Error: Compilation failed.
so it definitely seems like the unionKey value isn't being escaped properly.
Side note: this lib is pretty awesome, I've tried a bunch of Dart union libraries and this is definitely one of my favorites.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the value of
unionKey
has a$
, the build fails.To Reproduce
From my application, but stripped down:
Expected behavior
Compilation to succeed. Instead, I get (this was from a slightly larger repro, hence why there are some branches mentioned in the error that aren't in the above example):
so it definitely seems like the unionKey value isn't being escaped properly.
Side note: this lib is pretty awesome, I've tried a bunch of Dart union libraries and this is definitely one of my favorites.
The text was updated successfully, but these errors were encountered: