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
Reference resolver currently fails to map @keys that specify list fields. ArgumentParser is currently missing case for SyntaxKind.ListValue so whenever we have to process representation with list values it is unable to locate the target resolver.
[Key("ids")]publicclassFoo{publicFoo(List<string>ids,string?name){Ids=ids;Name=name;}publicList<string> Ids {get;}publicstring?Name{get;}[ReferenceResolver]publicstaticFoo?GetFooByIds(List<string>ids,Datarepository){// TODO implement logicreturnnull;}}
Workaround is available, instead of doing the auto mapping of arguments we process representation manually
[ReferenceResolver]publicstaticFoo?GetFooByIds([LocalState]ObjectValueNodedata,Datarepository){// TODO implement logic by manually reading representation from datareturnnull;}
dariuszkuc
changed the title
bug: map @key resolver logic fails to unwrap list entity representation
bug: entity resolver argument parser fails to unwrap list entity representation
Oct 17, 2023
dariuszkuc
changed the title
bug: entity resolver argument parser fails to unwrap list entity representation
bug: entity resolver argument parser fails to unwrap list values
Oct 17, 2023
Reference resolver currently fails to map
@key
s that specify list fields.ArgumentParser
is currently missing case forSyntaxKind.ListValue
so whenever we have to process representation with list values it is unable to locate the target resolver.Workaround is available, instead of doing the auto mapping of arguments we process representation manually
Related #6
The text was updated successfully, but these errors were encountered: