-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
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
Switch more over to System.Text.Json #9819
base: main
Are you sure you want to change the base?
Conversation
06ec5dd
to
7fda7e5
Compare
src/Xamarin.Android.Build.Tasks/Tasks/JavaDependencyVerification.cs
Outdated
Show resolved
Hide resolved
@@ -60,54 +60,53 @@ public class BuildAppBundle : BundleTool | |||
}; | |||
|
|||
[Required] | |||
public string BaseZip { get; set; } | |||
public string BaseZip { get; set; } = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunate side effect of using CoPilot. It changes other things and not just the stuff you asked it to 🤷
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
public List<Package>? Packages { get; set; } | ||
} | ||
|
||
public class Package | ||
{ | ||
[JsonProperty ("javaId")] | ||
[JsonPropertyName ("javaId")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathanpeppers are these needed if we have a JsonSerializerContext? Its not clear in the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would put "JavaId"
in the JSON without the attribute.
There might be a global setting though, for camelCase vs ProperCase.
.ToNode ()
on the Root JsonElement to convert it to a JsonNode. (We use JsonNode to do the merging).