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
I have noticed when place json in that contains a keyword as a property, it will end up being called that in the c# code which will not compile.
For example
{ "private": true }
result:
public class PullRequestHook { [JsonProperty("private")] public bool private { get; set; } }
This won't compile since private is a keyword.
keywords such as ref, head, base, async,private, protected, etc should switch cases, or rename the properties in some manor so it will compile.
ref, head, base, async,private, protected, etc
The text was updated successfully, but these errors were encountered:
The same is true for types like "Date" and others.
Sorry, something went wrong.
Understood. I feel like that is something that should be called out to the developer so that they are aware the mapping wont be 1:1.
@bladefist that's fair, like a warning box....
No branches or pull requests
I have noticed when place json in that contains a keyword as a property, it will end up being called that in the c# code which will not compile.
For example
result:
This won't compile since private is a keyword.
keywords such as
ref, head, base, async,private, protected, etc
should switch cases, or rename the properties in some manor so it will compile.The text was updated successfully, but these errors were encountered: