Open CaseyHofland opened 4 months ago
hi @CaseyHofland
I run into the same issue and was able to fix it by using
var json = NewtonsoftJsonSchemaGenerator.FromType<MyType>().ToJson();
By default JsonSchema.FromType
now uses System.Text.Json
and therefore doesn't consider Newtonsoft annotations.
On version
11.0.0
, When Ivar json = JsonSchema.FromType<MyType>().ToJson();
,[JsonProperty("stuff")]
will be ignored.When I'm on version
10.9.0
, it works.Thought I'd let you know :)