Closed RobbePeeters closed 1 week ago
When i looked in the code static methods were not registered.
Fixed it in my fork. The unit test is running fine
Hi @timophe-91, thanks for checking our issue out ! We found out that in our dynamic input 'Document.DocumentNumber' was sometimes empty. This causes the expression not to be resolved correctly throwing above exception as well.
Thanks !
We are currently building a validator using the RulesEngine in a .NET 8 project hosted in Azure container apps.
On of our rules is the following:
string.IsNullOrWhiteSpace(Document.DocumentNumber) == false
When validating this rule in a unit test it succeeds without any problem. But when we run this in our docker-compose (local) or the deployed solution (container apps) we receive the following error:
No applicable method 'IsNullOrWhiteSpace' exists in type 'String'
The running code is nothing to special: I have already tried passing 'string' as a custom type
The dockerfile uses:
Does anyone have an idea on what we might be doing wrong ?