We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On version 11.0.0, When I var json = JsonSchema.FromType<MyType>().ToJson();, [JsonProperty("stuff")] will be ignored.
11.0.0
var json = JsonSchema.FromType<MyType>().ToJson();
[JsonProperty("stuff")]
When I'm on version 10.9.0, it works.
10.9.0
Thought I'd let you know :)
The text was updated successfully, but these errors were encountered:
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.
JsonSchema.FromType
System.Text.Json
Sorry, something went wrong.
No branches or pull requests
On version
11.0.0
,When I
var 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 :)
The text was updated successfully, but these errors were encountered: