Review all models to make sure serialized values are exposed as properties instead of fields.
Review the classes in src/NCI.OCPL.Api.DrugDictionary/Models. All values intended to be serialized out should be written as properties with getters and setters, not as public fields.
This is right
public class Poco
{
public string StringProp { get; set; }
public int IntProp { get; set; }
}
This is wrong
public class MyClass
{
public string StringProp;
public int IntProp;
}
The difference (aside from best practices) is that System.Text.Json doesn't serialize public fields. This will eventually hurt us.
Review all models to make sure serialized values are exposed as properties instead of fields.
Review the classes in
src/NCI.OCPL.Api.DrugDictionary/Models
. All values intended to be serialized out should be written as properties with getters and setters, not as public fields.This is right
This is wrong
The difference (aside from best practices) is that
System.Text.Json
doesn't serialize public fields. This will eventually hurt us.Resources:
Prerequisites
Sub-Tasks
Notes