Closed kemmis closed 5 months ago
The class has been moved to https://www.nuget.org/packages/NJsonSchema.NewtonsoftJson
(You’re referencing the system.text.json one [default])
Switching to that package and updating the to using NJsonSchema.NewtonsoftJson.Converter;
fixed it. Thanks!
I'm using the JsonInheritanceConverter attribute on classes as described in the wiki here.
After upgrading from NJsonSchema 10.9.0 to 11.0.0 this syntax no longer works:
And I get this error at build time:
Error CS0305 Using the generic type 'JsonInheritanceConverter<TBase>' requires 1 type arguments
Adding
<>
to the type like this appears to resolve my build issues:Is this the correct way to use JsonInheritanceConverter with the JsonConvert attribute now?