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
With the latest (11.0.0) NJsonSchema, JsonSchemaGeneratorSettings seems to be made into an abstract class - which is breaking any code that is creating an instance of it.
It looks like NJsonSchema.NewtonsoftJson package needs to be installed and instead of JsonSchemaGeneratorSettings
NewtonsoftJsonSchemaGeneratorSettings needs to be used.
This should be better documented.
The text was updated successfully, but these errors were encountered:
Also NewtonsoftJsonSchemaGeneratorSettings needs to be better documented (I couldn't find it mentioned anywhere).
I'm sure I'm not the only one who updated to v14 and had a nightmarish time trying to get my Angular entities to match what I used to have now that System.Text drives the default generator. And that's because I have a lot of existing code, and the two libraries behave differently and use different attributes. It was an unnecessary source of frustration.
I had to switch to NewtonsoftJsonSchemaGeneratorSettings to preserve my sanity(!), but I had to figure that out myself from looking through the code.
With the latest (11.0.0) NJsonSchema, JsonSchemaGeneratorSettings seems to be made into an abstract class - which is breaking any code that is creating an instance of it.
It looks like NJsonSchema.NewtonsoftJson package needs to be installed and instead of JsonSchemaGeneratorSettings
NewtonsoftJsonSchemaGeneratorSettings needs to be used.
This should be better documented.
The text was updated successfully, but these errors were encountered: