eric bonito
eric bonito
CC#
Created by eric bonito on 8/21/2024 in #help
✅ Json Validation and Populating with Nulls if Missing
Right that is the forward process but I am exploring this backwards thing with a json schema
24 replies
CC#
Created by eric bonito on 8/21/2024 in #help
✅ Json Validation and Populating with Nulls if Missing
I hoping to just create a newtonsoft JObject from the json string file and compare against a defined JSchema (currently generated) with conditions to infill missing objects or properties with nulls. But configuring this is a bit challenging with deeper nesting
24 replies
CC#
Created by eric bonito on 8/21/2024 in #help
✅ Json Validation and Populating with Nulls if Missing
Yes and that is true if it is indeed quite a bit of effort which is what I am starting to see (deep nesting and arrays)
24 replies
CC#
Created by eric bonito on 8/21/2024 in #help
✅ Json Validation and Populating with Nulls if Missing
The effort here is mainly to homogenize input jsons ahead of deserialization as it seems like this could be a simple (but maybe not)
24 replies
CC#
Created by eric bonito on 1/3/2024 in #help
Hi is it possible to allow parametersArray to contain an instance variable?
Here is the ugly fix I am doing for now:

else if (expectedType.IsByRef)
{
if (expectedType.GetElementType() == typeof(string))
{tempString = ____
....

else if (expectedType.IsByRef)
{
if (expectedType.GetElementType() == typeof(string))
{tempString = ____
....
Basically Im using a bunch of elseif statements for a string vs int vs double
3 replies
CC#
Created by eric bonito on 7/28/2023 in #help
❔ Polyglot simple message
Yes but what happens when it is part of a class?
9 replies