From 0bd1f505265dc3539c6ebf536e5531c613bfa7b4 Mon Sep 17 00:00:00 2001 From: bparks13 Date: Wed, 18 Dec 2024 15:02:32 -0500 Subject: [PATCH] Ensure contact annotations use the correct Json Property name --- Directory.Build.props | 2 +- OpenEphys.ProbeInterface.NET/ContactAnnotations.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index c9f4d7d..aa65b9e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -12,7 +12,7 @@ LICENSE true icon.png - 0.2.1 + 0.3.0 10.0 strict diff --git a/OpenEphys.ProbeInterface.NET/ContactAnnotations.cs b/OpenEphys.ProbeInterface.NET/ContactAnnotations.cs index 73b241e..1d621a4 100644 --- a/OpenEphys.ProbeInterface.NET/ContactAnnotations.cs +++ b/OpenEphys.ProbeInterface.NET/ContactAnnotations.cs @@ -10,16 +10,17 @@ public class ContactAnnotations /// /// Gets the array of strings holding annotations for each contact. Not all indices must have annotations. /// + [JsonProperty("annotations")] public string[] Annotations { get; protected set; } /// /// Initializes a new instance of the class. /// - /// Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings. + /// Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings. [JsonConstructor] - public ContactAnnotations(string[] contactAnnotations) + public ContactAnnotations(string[] annotations) { - Annotations = contactAnnotations; + Annotations = annotations; } } }